eslint-plugin-gb 1.2.0 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +45 -45
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
# eslint-plugin-gb
|
|
2
|
-
|
|
3
|
-
## Description
|
|
4
|
-
|
|
5
|
-
My favorite eslint configurations
|
|
6
|
-
|
|
7
|
-
## Installation
|
|
8
|
-
|
|
9
|
-
```
|
|
10
|
-
$ npm i --save-dev typescript
|
|
11
|
-
$ npm i --save-dev eslint
|
|
12
|
-
$ npm i --save-dev @typescript-eslint/parser
|
|
13
|
-
$ npm i --save-dev @typescript-eslint/eslint-plugin
|
|
14
|
-
$ npm i --save-dev eslint-plugin-gb
|
|
15
|
-
```
|
|
16
|
-
|
|
17
|
-
## Usage
|
|
18
|
-
|
|
19
|
-
```js
|
|
20
|
-
// .eslintrc.js
|
|
21
|
-
|
|
22
|
-
module.exports = {
|
|
23
|
-
plugins: ['gb'],
|
|
24
|
-
extends: ['plugin:gb/recommended'],
|
|
25
|
-
};
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
## `recommended` config
|
|
29
|
-
|
|
30
|
-
| Rule
|
|
31
|
-
|
|
|
32
|
-
| [@typescript-eslint/
|
|
33
|
-
| [@typescript-eslint/explicit-
|
|
34
|
-
| [@typescript-eslint/
|
|
35
|
-
| [@typescript-eslint/
|
|
36
|
-
| [@typescript-eslint/no-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
## `recommended-with-type-checking` config
|
|
40
|
-
|
|
41
|
-
all of the `recommended` rules and also the following.
|
|
42
|
-
|
|
43
|
-
| Rule
|
|
44
|
-
|
|
|
45
|
-
| [@typescript-eslint/unbound-method](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/unbound-method.md) | error
|
|
1
|
+
# eslint-plugin-gb
|
|
2
|
+
|
|
3
|
+
## Description
|
|
4
|
+
|
|
5
|
+
My favorite eslint configurations
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```
|
|
10
|
+
$ npm i --save-dev typescript
|
|
11
|
+
$ npm i --save-dev eslint
|
|
12
|
+
$ npm i --save-dev @typescript-eslint/parser
|
|
13
|
+
$ npm i --save-dev @typescript-eslint/eslint-plugin
|
|
14
|
+
$ npm i --save-dev eslint-plugin-gb
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
```js
|
|
20
|
+
// .eslintrc.js
|
|
21
|
+
|
|
22
|
+
module.exports = {
|
|
23
|
+
plugins: ['gb'],
|
|
24
|
+
extends: ['plugin:gb/recommended'],
|
|
25
|
+
};
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
## `recommended` config
|
|
29
|
+
|
|
30
|
+
| Rule | Setting |
|
|
31
|
+
| ------------------------------------------------------------------------------------------------------------------------- | --------------------------------- |
|
|
32
|
+
| [@typescript-eslint/consistent-type-imports](https://typescript-eslint.io/rules/consistent-type-imports) | warn |
|
|
33
|
+
| [@typescript-eslint/explicit-member-accessibility](https://typescript-eslint.io/rules/explicit-member-accessibility.md) | warn |
|
|
34
|
+
| [@typescript-eslint/explicit-module-boundary-types](https://typescript-eslint.io/rules/explicit-module-boundary-types.md) | warn |
|
|
35
|
+
| [@typescript-eslint/member-ordering](https://typescript-eslint.io/rules/member-ordering.md) | warn (with alphabetical ordering) |
|
|
36
|
+
| [@typescript-eslint/no-floating-promises](https://typescript-eslint.io/rules/no-floating-promises.md) | warn |
|
|
37
|
+
| [@typescript-eslint/no-unused-vars](https://typescript-eslint.io/rules/no-unused-vars.md) | off |
|
|
38
|
+
|
|
39
|
+
## `recommended-with-type-checking` config
|
|
40
|
+
|
|
41
|
+
all of the `recommended` rules and also the following.
|
|
42
|
+
|
|
43
|
+
| Rule | Setting |
|
|
44
|
+
| ----------------------------------------------------------------------------------------------------------------------------------------------------------- | ------- |
|
|
45
|
+
| [@typescript-eslint/unbound-method](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/unbound-method.md) | error |
|
package/lib/index.js
CHANGED
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,uDAAuD;AAEvD,MAAM,YAAY,GAChB,OAAO,CAAC,6DAA6D,CAEpE,CAAC;AAEJ,MAAM,CAAC,OAAO,GAAG;IACf,OAAO,EAAE;QACP,IAAI,EAAE;YACJ,GAAG,EAAE;gBACH,IAAI,EAAE,IAAI;gBACV,MAAM,EAAE,IAAI;aACb;YACD,OAAO,EAAE,CAAC,oBAAoB,CAAC;YAC/B,OAAO,EAAE,CAAC,oBAAoB,EAAE,uCAAuC,CAAC;YACxE,KAAK,EAAE;gBACL,kDAAkD,EAAE,MAAM;gBAC1D,mDAAmD,EAAE,MAAM;gBAC3D,oCAAoC,EAAE;oBACpC,MAAM;oBACN;wBACE,OAAO,EAAE;4BACP,WAAW,EAAE,YAAY,CAAC,YAAY;4BACtC,KAAK,EAAE,gBAAgB;yBACxB;qBACF;iBACF;gBACD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,uDAAuD;AAEvD,MAAM,YAAY,GAChB,OAAO,CAAC,6DAA6D,CAEpE,CAAC;AAEJ,MAAM,CAAC,OAAO,GAAG;IACf,OAAO,EAAE;QACP,IAAI,EAAE;YACJ,GAAG,EAAE;gBACH,IAAI,EAAE,IAAI;gBACV,MAAM,EAAE,IAAI;aACb;YACD,OAAO,EAAE,CAAC,oBAAoB,CAAC;YAC/B,OAAO,EAAE,CAAC,oBAAoB,EAAE,uCAAuC,CAAC;YACxE,KAAK,EAAE;gBACL,kDAAkD,EAAE,MAAM;gBAC1D,mDAAmD,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1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-gb",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "eslint-plugin-gb",
|
|
5
5
|
"private": false,
|
|
6
6
|
"devDependencies": {
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"prepare": "npm run build"
|
|
30
30
|
},
|
|
31
31
|
"typings": "lib/index.d.ts",
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "3109328bd3776524c27d21941c3245cc69b95be9"
|
|
33
33
|
}
|