@mikey-pro/eslint-config 4.6.3 → 4.8.1
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/index.js +53 -59
- package/package.json +9 -8
package/index.js
CHANGED
|
@@ -11,7 +11,7 @@ module.exports = {
|
|
|
11
11
|
],
|
|
12
12
|
overrides: [
|
|
13
13
|
{
|
|
14
|
-
files: ['*.ts'],
|
|
14
|
+
files: ['*.ts', '*.tsx'],
|
|
15
15
|
parser: '@typescript-eslint/parser',
|
|
16
16
|
parserOptions: {
|
|
17
17
|
tsconfigRootDir: __dirname,
|
|
@@ -29,29 +29,13 @@ module.exports = {
|
|
|
29
29
|
'plugin:@typescript-eslint/recommended-requiring-type-checking',
|
|
30
30
|
],
|
|
31
31
|
rules: {
|
|
32
|
-
'import/named':
|
|
33
|
-
'import/namespace':
|
|
34
|
-
'import/default':
|
|
35
|
-
'import/no-named-as-default-member':
|
|
36
|
-
'import/no-unresolved':
|
|
37
|
-
'@typescript-eslint/indent':
|
|
38
|
-
'@typescript-eslint/naming-convention':
|
|
39
|
-
'prettier/prettier': [1, { parser: 'typescript' }],
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
{
|
|
43
|
-
files: ['*.tsx', '*.jsx'],
|
|
44
|
-
parserOptions: {
|
|
45
|
-
extraFileExtensions: ['.vue', '.svelte'],
|
|
46
|
-
},
|
|
47
|
-
rules: {
|
|
48
|
-
'import/named': 0,
|
|
49
|
-
'import/namespace': 0,
|
|
50
|
-
'import/default': 0,
|
|
51
|
-
'import/no-named-as-default-member': 0,
|
|
52
|
-
'import/no-unresolved': 0,
|
|
53
|
-
'@typescript-eslint/naming-convention': 0,
|
|
54
|
-
'@typescript-eslint/indent': 0,
|
|
32
|
+
'import/named': 1,
|
|
33
|
+
'import/namespace': 1,
|
|
34
|
+
'import/default': 1,
|
|
35
|
+
'import/no-named-as-default-member': 1,
|
|
36
|
+
'import/no-unresolved': 1,
|
|
37
|
+
'@typescript-eslint/indent': 1,
|
|
38
|
+
'@typescript-eslint/naming-convention': 1,
|
|
55
39
|
'prettier/prettier': [1, { parser: 'typescript' }],
|
|
56
40
|
},
|
|
57
41
|
},
|
|
@@ -86,7 +70,7 @@ module.exports = {
|
|
|
86
70
|
parser: 'toml-eslint-parser',
|
|
87
71
|
extends: ['plugin:toml/standard'],
|
|
88
72
|
rules: {
|
|
89
|
-
'prettier/prettier':
|
|
73
|
+
'prettier/prettier': 1,
|
|
90
74
|
},
|
|
91
75
|
},
|
|
92
76
|
{
|
|
@@ -118,10 +102,10 @@ module.exports = {
|
|
|
118
102
|
extends: ['plugin:@html-eslint/recommended'],
|
|
119
103
|
plugins: ['@html-eslint'],
|
|
120
104
|
rules: {
|
|
121
|
-
'spaced-comment':
|
|
122
|
-
'@html-eslint/indent':
|
|
123
|
-
'@html-eslint/no-extra-spacing-attrs':
|
|
124
|
-
'@html-eslint/require-closing-tags':
|
|
105
|
+
'spaced-comment': 1,
|
|
106
|
+
'@html-eslint/indent': 1,
|
|
107
|
+
'@html-eslint/no-extra-spacing-attrs': 1,
|
|
108
|
+
'@html-eslint/require-closing-tags': 1,
|
|
125
109
|
'disable-autofix/@html-eslint/require-closing-tags': [
|
|
126
110
|
1,
|
|
127
111
|
{ selfClosing: 'always' },
|
|
@@ -179,7 +163,7 @@ module.exports = {
|
|
|
179
163
|
order: [['script', 'template'], 'style'],
|
|
180
164
|
},
|
|
181
165
|
],
|
|
182
|
-
'prettier/prettier':
|
|
166
|
+
'prettier/prettier': 1,
|
|
183
167
|
},
|
|
184
168
|
},
|
|
185
169
|
{
|
|
@@ -187,11 +171,11 @@ module.exports = {
|
|
|
187
171
|
processor: 'svelte3/svelte3',
|
|
188
172
|
plugins: ['svelte3'],
|
|
189
173
|
rules: {
|
|
190
|
-
'import/first':
|
|
191
|
-
'import/no-duplicates':
|
|
192
|
-
'import/no-mutable-exports':
|
|
193
|
-
'import/no-unresolved':
|
|
194
|
-
'prettier/prettier':
|
|
174
|
+
'import/first': 1,
|
|
175
|
+
'import/no-duplicates': 1,
|
|
176
|
+
'import/no-mutable-exports': 1,
|
|
177
|
+
'import/no-unresolved': 1,
|
|
178
|
+
'prettier/prettier': 1,
|
|
195
179
|
},
|
|
196
180
|
},
|
|
197
181
|
{
|
|
@@ -238,12 +222,12 @@ module.exports = {
|
|
|
238
222
|
'`with` is disallowed in strict mode because it makes code impossible to predict and optimize.',
|
|
239
223
|
},
|
|
240
224
|
],
|
|
241
|
-
camelcase:
|
|
242
|
-
'no-console':
|
|
243
|
-
'func-names':
|
|
244
|
-
'no-process-exit':
|
|
245
|
-
'class-methods-use-this':
|
|
246
|
-
'no-underscore-dangle':
|
|
225
|
+
camelcase: 1,
|
|
226
|
+
'no-console': 1,
|
|
227
|
+
'func-names': 1,
|
|
228
|
+
'no-process-exit': 1,
|
|
229
|
+
'class-methods-use-this': 1,
|
|
230
|
+
'no-underscore-dangle': 1,
|
|
247
231
|
'import/no-unresolved': [
|
|
248
232
|
1,
|
|
249
233
|
{ commonjs: true, amd: true, ignore: ['^node:'] },
|
|
@@ -266,9 +250,9 @@ module.exports = {
|
|
|
266
250
|
},
|
|
267
251
|
],
|
|
268
252
|
'keyword-spacing': 1,
|
|
269
|
-
'require-atomic-updates':
|
|
270
|
-
'import/no-commonjs':
|
|
271
|
-
'sort-imports':
|
|
253
|
+
'require-atomic-updates': 1,
|
|
254
|
+
'import/no-commonjs': 1,
|
|
255
|
+
'sort-imports': 1,
|
|
272
256
|
'constructor-super': 1,
|
|
273
257
|
'no-caller': 1,
|
|
274
258
|
'no-const-assign': 1,
|
|
@@ -277,9 +261,9 @@ module.exports = {
|
|
|
277
261
|
'no-dupe-keys': 1,
|
|
278
262
|
'no-duplicate-imports': 1,
|
|
279
263
|
'no-else-return': 1,
|
|
280
|
-
'no-empty-pattern':
|
|
281
|
-
'no-empty':
|
|
282
|
-
'no-extra-parens':
|
|
264
|
+
'no-empty-pattern': 1,
|
|
265
|
+
'no-empty': 1,
|
|
266
|
+
'no-extra-parens': 1,
|
|
283
267
|
'no-iterator': 1,
|
|
284
268
|
'no-lonely-if': 1,
|
|
285
269
|
'no-mixed-spaces-and-tabs': [1, 'smart-tabs'],
|
|
@@ -288,7 +272,7 @@ module.exports = {
|
|
|
288
272
|
'no-proto': 1,
|
|
289
273
|
'no-redeclare': 1,
|
|
290
274
|
'no-shadow-restricted-names': 1,
|
|
291
|
-
'no-shadow':
|
|
275
|
+
'no-shadow': 1,
|
|
292
276
|
'no-spaced-func': 1,
|
|
293
277
|
'no-this-before-super': 1,
|
|
294
278
|
'no-undef-init': 1,
|
|
@@ -308,19 +292,19 @@ module.exports = {
|
|
|
308
292
|
'no-useless-rename': 1,
|
|
309
293
|
'no-var': 1,
|
|
310
294
|
'no-with': 1,
|
|
311
|
-
semi:
|
|
295
|
+
semi: 1,
|
|
312
296
|
strict: [1, 'never'],
|
|
313
|
-
'object-curly-spacing': [
|
|
314
|
-
'rest-spread-spacing':
|
|
315
|
-
'space-before-function-paren': [
|
|
316
|
-
'space-in-parens': [
|
|
297
|
+
'object-curly-spacing': [1, 'always'],
|
|
298
|
+
'rest-spread-spacing': 1,
|
|
299
|
+
'space-before-function-paren': [1, 'always'],
|
|
300
|
+
'space-in-parens': [1, 'never'],
|
|
317
301
|
'object-shorthand': 1,
|
|
318
302
|
'prefer-arrow-callback': 1,
|
|
319
303
|
'prefer-rest-params': 1,
|
|
320
304
|
'prefer-spread': 1,
|
|
321
305
|
'prefer-template': 1,
|
|
322
306
|
quotes: [
|
|
323
|
-
|
|
307
|
+
1,
|
|
324
308
|
'single',
|
|
325
309
|
{
|
|
326
310
|
avoidEscape: true,
|
|
@@ -330,7 +314,7 @@ module.exports = {
|
|
|
330
314
|
'quote-props': [1, 'as-needed'],
|
|
331
315
|
radix: 1,
|
|
332
316
|
'unicode-bom': 1,
|
|
333
|
-
'valid-jsdoc':
|
|
317
|
+
'valid-jsdoc': 1,
|
|
334
318
|
'spaced-comment': [
|
|
335
319
|
1,
|
|
336
320
|
'always',
|
|
@@ -347,7 +331,7 @@ module.exports = {
|
|
|
347
331
|
},
|
|
348
332
|
],
|
|
349
333
|
'unicorn/import-index': [1, { ignoreImports: true }],
|
|
350
|
-
'filenames/match-regex':
|
|
334
|
+
'filenames/match-regex': 1,
|
|
351
335
|
'unicorn/filename-case': [
|
|
352
336
|
1,
|
|
353
337
|
{
|
|
@@ -358,9 +342,9 @@ module.exports = {
|
|
|
358
342
|
ignore: ['README.md'],
|
|
359
343
|
},
|
|
360
344
|
],
|
|
361
|
-
'react/state-in-constructor':
|
|
345
|
+
'react/state-in-constructor': 1,
|
|
362
346
|
'react/no-deprecated': 1,
|
|
363
|
-
'react/react-in-jsx-scope':
|
|
347
|
+
'react/react-in-jsx-scope': 1,
|
|
364
348
|
'react/display-name': [1, { ignoreTranspilerName: false }],
|
|
365
349
|
'react/jsx-no-bind': [
|
|
366
350
|
1,
|
|
@@ -377,7 +361,7 @@ module.exports = {
|
|
|
377
361
|
'react/jsx-no-undef': 1,
|
|
378
362
|
'react/jsx-uses-react': 1,
|
|
379
363
|
'react/jsx-uses-vars': 1,
|
|
380
|
-
'react/function-component-definition':
|
|
364
|
+
'react/function-component-definition': 1,
|
|
381
365
|
'react/jsx-no-duplicate-props': 1,
|
|
382
366
|
'react/jsx-no-target-blank': 1,
|
|
383
367
|
'react/jsx-tag-spacing': [1, { beforeSelfClosing: 'always' }],
|
|
@@ -398,7 +382,16 @@ module.exports = {
|
|
|
398
382
|
html: false,
|
|
399
383
|
},
|
|
400
384
|
],
|
|
385
|
+
'sort-keys-fix/sort-keys-fix': 1,
|
|
386
|
+
'sort-vars': 1,
|
|
387
|
+
'no-confusing-arrow': 1,
|
|
388
|
+
'no-extra-bind': 1,
|
|
389
|
+
'no-extra-semi': 1,
|
|
390
|
+
'no-floating-decimal': 1,
|
|
391
|
+
'no-useless-return': 1,
|
|
392
|
+
'dot-notation': 1,
|
|
401
393
|
'prettier/prettier': [1, { parser: 'babel' }],
|
|
394
|
+
'jsx-quotes': 1,
|
|
402
395
|
},
|
|
403
396
|
plugins: [
|
|
404
397
|
'prettier',
|
|
@@ -408,6 +401,7 @@ module.exports = {
|
|
|
408
401
|
'unicorn',
|
|
409
402
|
'sonarjs',
|
|
410
403
|
'only-warn',
|
|
404
|
+
'sort-keys-fix',
|
|
411
405
|
],
|
|
412
406
|
ignorePatterns: [
|
|
413
407
|
'!.*',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mikey-pro/eslint-config",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.8.1",
|
|
4
4
|
"description": "Mikey Pro ESLint configuration",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"dependencies": {
|
|
@@ -11,10 +11,10 @@
|
|
|
11
11
|
"@babel/preset-env": "^7.16",
|
|
12
12
|
"@html-eslint/eslint-plugin": "^0.13.1",
|
|
13
13
|
"@html-eslint/parser": "^0.13.1",
|
|
14
|
-
"@typescript-eslint/eslint-plugin": "^5.
|
|
15
|
-
"@typescript-eslint/parser": "^5.
|
|
14
|
+
"@typescript-eslint/eslint-plugin": "^5.13.0",
|
|
15
|
+
"@typescript-eslint/parser": "^5.13.0",
|
|
16
16
|
"@vue/babel-plugin-jsx": "^1.1.1",
|
|
17
|
-
"eslint-config-prettier": "^8.
|
|
17
|
+
"eslint-config-prettier": "^8.4",
|
|
18
18
|
"eslint-config-react-app": "^7.0.0",
|
|
19
19
|
"eslint-import-resolver-typescript": "^2.5.0",
|
|
20
20
|
"eslint-plugin-compat": "^4.0",
|
|
@@ -27,13 +27,14 @@
|
|
|
27
27
|
"eslint-plugin-only-warn": "^1.0.3",
|
|
28
28
|
"eslint-plugin-prettier": "^4.0",
|
|
29
29
|
"eslint-plugin-promise": "^6.0.0",
|
|
30
|
-
"eslint-plugin-sonarjs": "^0.
|
|
31
|
-
"eslint-plugin-
|
|
30
|
+
"eslint-plugin-sonarjs": "^0.12.0",
|
|
31
|
+
"eslint-plugin-sort-keys-fix": "^1.1.2",
|
|
32
|
+
"eslint-plugin-svelte3": "^3.4.1",
|
|
32
33
|
"eslint-plugin-toml": "^0.3.0",
|
|
33
34
|
"eslint-plugin-unicorn": "^41.0.0",
|
|
34
|
-
"eslint-plugin-vue": "^8.
|
|
35
|
+
"eslint-plugin-vue": "^8.5",
|
|
35
36
|
"eslint-plugin-yaml": "^0.5.0",
|
|
36
|
-
"vue-eslint-parser": "^8.
|
|
37
|
+
"vue-eslint-parser": "^8.3"
|
|
37
38
|
},
|
|
38
39
|
"peerDependencies": {
|
|
39
40
|
"eslint": ">=8.3.0"
|