eslint-plugin-gb 1.2.0 → 1.4.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 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 | Setting |
31
- | --- | --- |
32
- | [@typescript-eslint/explicit-member-accessibility](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/explicit-member-accessibility.md) | warn |
33
- | [@typescript-eslint/explicit-module-boundary-types](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/explicit-module-boundary-types.md) | warn |
34
- | [@typescript-eslint/member-ordering](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/member-ordering.md) | warn (with alphabetical ordering) |
35
- | [@typescript-eslint/no-floating-promises](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-floating-promises.md) | warn |
36
- | [@typescript-eslint/no-unused-vars](https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/no-unused-vars.md) | off |
37
-
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 |
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://typescript-eslint.io/rules/unbound-method.md) | error |
package/lib/index.js CHANGED
@@ -13,6 +13,7 @@ module.exports = {
13
13
  rules: {
14
14
  '@typescript-eslint/explicit-member-accessibility': 'warn',
15
15
  '@typescript-eslint/explicit-module-boundary-types': 'warn',
16
+ '@typescript-eslint/no-unused-vars': 'off',
16
17
  '@typescript-eslint/member-ordering': [
17
18
  'warn',
18
19
  {
@@ -22,7 +23,7 @@ module.exports = {
22
23
  },
23
24
  },
24
25
  ],
25
- '@typescript-eslint/no-unused-vars': 'off',
26
+ '@typescript-eslint/consistent-type-imports': 'warn',
26
27
  '@typescript-eslint/no-floating-promises': 'warn',
27
28
  },
28
29
  },
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,mCAAmC,EAAE,KAAK;gBAC1C,yCAAyC,EAAE,MAAM;aAClD;SACF;QACD,WAAW,EAAE;YACX,OAAO,EAAE,CAAC,IAAI,CAAC;YACf,OAAO,EAAE,CAAC,gBAAgB,CAAC;SAC5B;QACD,gCAAgC,EAAE;YAChC,OAAO,EAAE,CAAC,IAAI,CAAC;YACf,OAAO,EAAE,CAAC,uBAAuB,CAAC;YAClC,KAAK,EAAE;gBACL,mCAAmC,EAAE,CAAC,OAAO,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;aACvE;SACF;QACD,GAAG,EAAE;YACH,GAAG,EAAE;gBACH,IAAI,EAAE,IAAI;gBACV,MAAM,EAA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M;gBACpD,yCAAyC,EAAE,MAAM;aAClD;SACF;QACD,WAAW,EAAE;YACX,OAAO,EAAE,CAAC,IAAI,CAAC;YACf,OAAO,EAAE,CAAC,gBAAgB,CAAC;SAC5B;QACD,gCAAgC,EAAE;YAChC,OAAO,EAAE,CAAC,IAAI,CAAC;YACf,OAAO,EAAE,CAAC,uBAAuB,CAAC;YAClC,KAAK,EAAE;gBACL,mCAAmC,EAAE,CAAC,OAAO,EAAE,EAAE,YAAY,EAAE,IAAI,EAAE,CAAC;aACvE;SACF;QACD,GAAG,EAAE;YACH,GAAG,EAAE;gBACH,IAAI,EAAE,IAAI;gBACV,MAAM,EAAE,IAAI;gBACZ,IAAI,EAAE,IAAI;aACX;YACD,OAAO,EAAE,CAAC,oBAAoB,EAAE,MAAM,CAAC;YACvC,OAAO,EAAE;gBACP,oBAAoB;gBACpB,uCAAuC;gBACvC,+DAA+D;gBAC/D,6BAA6B;aAC9B;YACD,SAAS,EAAE;gBACT;oBACE,KAAK,EAAE,CAAC,cAAc,CAAC;oBACvB,KAAK,EAAE;wBACL,mCAAmC,EAAE,KAAK;wBAC1C,qBAAqB,EAAE,OAAO;qBAC/B;iBACF;aACF;YACD,KAAK,EAAE;gBACL,mBAAmB,EAAE,MAAM;gBAC3B,kDAAkD,EAAE,MAAM;gBAC1D,mCAAmC,EAAE,KAAK;gBAC1C,oCAAoC,EAAE;oBACpC,MAAM;oBACN;wBACE,OAAO,EAAE;4BACP,WAAW,EAAE,YAAY,CAAC,YAAY;4BACtC,KAAK,EAAE,gBAAgB;yBACxB;qBACF;iBACF;aACF;SACF;KACF;CACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-gb",
3
- "version": "1.2.0",
3
+ "version": "1.4.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": "71bb042a3b386c3c629a06a16769e9aafcbc7534"
32
+ "gitHead": "047a1aa48344b47ee3029b6f82d8d558d707384e"
33
33
  }