@d-zero/eslint-config 5.0.0-alpha.14 → 5.0.0-alpha.16

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.
Files changed (3) hide show
  1. package/base.js +25 -25
  2. package/index.js +10 -9
  3. package/package.json +2 -2
package/base.js CHANGED
@@ -22,10 +22,31 @@ module.exports = {
22
22
  },
23
23
  rules: {
24
24
  // Standard
25
- 'no-var': 2,
26
- 'no-unused-vars': 0,
27
25
  'no-console': 'warn',
28
26
  'no-mixed-spaces-and-tabs': 0,
27
+ 'no-restricted-syntax': [
28
+ 2,
29
+ {
30
+ selector:
31
+ ':matches(PropertyDefinition, MethodDefinition)[accessibility="private"]',
32
+ message: 'Use #private instead',
33
+ },
34
+ {
35
+ selector:
36
+ ':matches(PropertyDefinition, MethodDefinition)[accessibility="public"]',
37
+ message: 'Remove public keyword',
38
+ },
39
+ {
40
+ selector: 'MethodDefinition[key.name=/^_/]:not([accessibility="protected"])',
41
+ message: 'Add protected keyword',
42
+ },
43
+ {
44
+ selector: 'MethodDefinition:not([key.name=/^_/])[accessibility="protected"]',
45
+ message: 'Start with `_` if you want to use protected',
46
+ },
47
+ ],
48
+ 'no-unused-vars': 0,
49
+ 'no-var': 2,
29
50
  'prefer-const': 2,
30
51
  'prefer-rest-params': 2,
31
52
  'prefer-spread': 2,
@@ -36,14 +57,15 @@ module.exports = {
36
57
  'unicorn/no-array-callback-reference': 0,
37
58
  'unicorn/no-nested-ternary': 0,
38
59
  'unicorn/no-null': 0,
60
+ 'unicorn/no-process-exit': 0,
39
61
  'unicorn/prefer-query-selector': 0,
40
62
  'unicorn/prefer-ternary': 0,
41
63
  'unicorn/prevent-abbreviations': 0,
42
64
 
43
65
  // import
66
+ 'import/no-extraneous-dependencies': 2,
44
67
  'import/no-named-as-default': 0,
45
68
  'import/no-unresolved': 0,
46
- 'import/no-extraneous-dependencies': 2,
47
69
  'import/order': [
48
70
  2,
49
71
  {
@@ -173,28 +195,6 @@ module.exports = {
173
195
  accessorPairPositioning: 'getThenSet',
174
196
  },
175
197
  ],
176
-
177
- 'no-restricted-syntax': [
178
- 2,
179
- {
180
- selector:
181
- ':matches(PropertyDefinition, MethodDefinition)[accessibility="private"]',
182
- message: 'Use #private instead',
183
- },
184
- {
185
- selector:
186
- ':matches(PropertyDefinition, MethodDefinition)[accessibility="public"]',
187
- message: 'Remove public keyword',
188
- },
189
- {
190
- selector: 'MethodDefinition[key.name=/^_/]:not([accessibility="protected"])',
191
- message: 'Add protected keyword',
192
- },
193
- {
194
- selector: 'MethodDefinition:not([key.name=/^_/])[accessibility="protected"]',
195
- message: 'Start with `_` if you want to use protected',
196
- },
197
- ],
198
198
  },
199
199
  settings: {
200
200
  jsdoc: {
package/index.js CHANGED
@@ -25,19 +25,20 @@ module.exports = {
25
25
  rules: {
26
26
  ...base.rules,
27
27
  // @typescript-eslint
28
- '@typescript-eslint/no-unused-vars': 2,
29
- '@typescript-eslint/no-array-constructor': 2,
30
28
  '@typescript-eslint/adjacent-overload-signatures': 2,
29
+ '@typescript-eslint/ban-ts-comment': 0,
30
+ '@typescript-eslint/consistent-type-imports': 1,
31
+ '@typescript-eslint/member-ordering': 0,
32
+ '@typescript-eslint/no-array-constructor': 2,
33
+ '@typescript-eslint/no-explicit-any': [1, { fixToUnknown: true }],
34
+ '@typescript-eslint/no-floating-promises': 2,
31
35
  '@typescript-eslint/no-namespace': [2, { allowDeclarations: true }],
32
- '@typescript-eslint/prefer-namespace-keyword': 2,
33
- '@typescript-eslint/no-var-requires': 2,
34
36
  '@typescript-eslint/no-unnecessary-type-assertion': 2,
35
- '@typescript-eslint/restrict-plus-operands': 0,
36
- '@typescript-eslint/no-explicit-any': [1, { fixToUnknown: true }],
37
- '@typescript-eslint/consistent-type-imports': 1,
37
+ '@typescript-eslint/no-unused-vars': 2,
38
+ '@typescript-eslint/no-var-requires': 2,
39
+ '@typescript-eslint/prefer-namespace-keyword': 2,
38
40
  '@typescript-eslint/require-await': 2,
39
- '@typescript-eslint/no-floating-promises': 2,
40
- '@typescript-eslint/member-ordering': 0,
41
+ '@typescript-eslint/restrict-plus-operands': 0,
41
42
  },
42
43
  },
43
44
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@d-zero/eslint-config",
3
- "version": "5.0.0-alpha.14",
3
+ "version": "5.0.0-alpha.16",
4
4
  "description": "Configurations of ESLint",
5
5
  "repository": "https://github.com/d-zero-dev/linters.git",
6
6
  "author": "D-ZERO Co., Ltd.",
@@ -34,5 +34,5 @@
34
34
  "eslint-plugin-sort-class-members": "1.20.0",
35
35
  "eslint-plugin-unicorn": "51.0.1"
36
36
  },
37
- "gitHead": "9ba13d8a3153a50f989d9a32fdddec4c43fbb8fa"
37
+ "gitHead": "baddf6a71360a679cb0e418d791daab1605e710f"
38
38
  }