@mikey-pro/eslint-config 4.7.0 → 4.8.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/index.js +53 -43
- package/package.json +9 -8
package/index.js
CHANGED
|
@@ -29,13 +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':
|
|
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,
|
|
39
39
|
'prettier/prettier': [1, { parser: 'typescript' }],
|
|
40
40
|
},
|
|
41
41
|
},
|
|
@@ -70,7 +70,7 @@ module.exports = {
|
|
|
70
70
|
parser: 'toml-eslint-parser',
|
|
71
71
|
extends: ['plugin:toml/standard'],
|
|
72
72
|
rules: {
|
|
73
|
-
'prettier/prettier':
|
|
73
|
+
'prettier/prettier': 1,
|
|
74
74
|
},
|
|
75
75
|
},
|
|
76
76
|
{
|
|
@@ -102,10 +102,10 @@ module.exports = {
|
|
|
102
102
|
extends: ['plugin:@html-eslint/recommended'],
|
|
103
103
|
plugins: ['@html-eslint'],
|
|
104
104
|
rules: {
|
|
105
|
-
'spaced-comment':
|
|
106
|
-
'@html-eslint/indent':
|
|
107
|
-
'@html-eslint/no-extra-spacing-attrs':
|
|
108
|
-
'@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,
|
|
109
109
|
'disable-autofix/@html-eslint/require-closing-tags': [
|
|
110
110
|
1,
|
|
111
111
|
{ selfClosing: 'always' },
|
|
@@ -163,7 +163,7 @@ module.exports = {
|
|
|
163
163
|
order: [['script', 'template'], 'style'],
|
|
164
164
|
},
|
|
165
165
|
],
|
|
166
|
-
'prettier/prettier':
|
|
166
|
+
'prettier/prettier': 1,
|
|
167
167
|
},
|
|
168
168
|
},
|
|
169
169
|
{
|
|
@@ -171,11 +171,11 @@ module.exports = {
|
|
|
171
171
|
processor: 'svelte3/svelte3',
|
|
172
172
|
plugins: ['svelte3'],
|
|
173
173
|
rules: {
|
|
174
|
-
'import/first':
|
|
175
|
-
'import/no-duplicates':
|
|
176
|
-
'import/no-mutable-exports':
|
|
177
|
-
'import/no-unresolved':
|
|
178
|
-
'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,
|
|
179
179
|
},
|
|
180
180
|
},
|
|
181
181
|
{
|
|
@@ -201,7 +201,7 @@ module.exports = {
|
|
|
201
201
|
node: true,
|
|
202
202
|
es6: true,
|
|
203
203
|
commonjs: true,
|
|
204
|
-
|
|
204
|
+
es2121: true,
|
|
205
205
|
},
|
|
206
206
|
rules: {
|
|
207
207
|
'no-restricted-syntax': [
|
|
@@ -222,12 +222,12 @@ module.exports = {
|
|
|
222
222
|
'`with` is disallowed in strict mode because it makes code impossible to predict and optimize.',
|
|
223
223
|
},
|
|
224
224
|
],
|
|
225
|
-
camelcase:
|
|
226
|
-
'no-console':
|
|
227
|
-
'func-names':
|
|
228
|
-
'no-process-exit':
|
|
229
|
-
'class-methods-use-this':
|
|
230
|
-
'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,
|
|
231
231
|
'import/no-unresolved': [
|
|
232
232
|
1,
|
|
233
233
|
{ commonjs: true, amd: true, ignore: ['^node:'] },
|
|
@@ -250,9 +250,9 @@ module.exports = {
|
|
|
250
250
|
},
|
|
251
251
|
],
|
|
252
252
|
'keyword-spacing': 1,
|
|
253
|
-
'require-atomic-updates':
|
|
254
|
-
'import/no-commonjs':
|
|
255
|
-
'sort-imports':
|
|
253
|
+
'require-atomic-updates': 1,
|
|
254
|
+
'import/no-commonjs': 1,
|
|
255
|
+
'sort-imports': 1,
|
|
256
256
|
'constructor-super': 1,
|
|
257
257
|
'no-caller': 1,
|
|
258
258
|
'no-const-assign': 1,
|
|
@@ -261,9 +261,9 @@ module.exports = {
|
|
|
261
261
|
'no-dupe-keys': 1,
|
|
262
262
|
'no-duplicate-imports': 1,
|
|
263
263
|
'no-else-return': 1,
|
|
264
|
-
'no-empty-pattern':
|
|
265
|
-
'no-empty':
|
|
266
|
-
'no-extra-parens':
|
|
264
|
+
'no-empty-pattern': 1,
|
|
265
|
+
'no-empty': 1,
|
|
266
|
+
'no-extra-parens': 1,
|
|
267
267
|
'no-iterator': 1,
|
|
268
268
|
'no-lonely-if': 1,
|
|
269
269
|
'no-mixed-spaces-and-tabs': [1, 'smart-tabs'],
|
|
@@ -272,7 +272,7 @@ module.exports = {
|
|
|
272
272
|
'no-proto': 1,
|
|
273
273
|
'no-redeclare': 1,
|
|
274
274
|
'no-shadow-restricted-names': 1,
|
|
275
|
-
'no-shadow':
|
|
275
|
+
'no-shadow': 1,
|
|
276
276
|
'no-spaced-func': 1,
|
|
277
277
|
'no-this-before-super': 1,
|
|
278
278
|
'no-undef-init': 1,
|
|
@@ -292,19 +292,19 @@ module.exports = {
|
|
|
292
292
|
'no-useless-rename': 1,
|
|
293
293
|
'no-var': 1,
|
|
294
294
|
'no-with': 1,
|
|
295
|
-
semi:
|
|
295
|
+
semi: 1,
|
|
296
296
|
strict: [1, 'never'],
|
|
297
|
-
'object-curly-spacing': [
|
|
298
|
-
'rest-spread-spacing':
|
|
299
|
-
'space-before-function-paren': [
|
|
300
|
-
'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'],
|
|
301
301
|
'object-shorthand': 1,
|
|
302
302
|
'prefer-arrow-callback': 1,
|
|
303
303
|
'prefer-rest-params': 1,
|
|
304
304
|
'prefer-spread': 1,
|
|
305
305
|
'prefer-template': 1,
|
|
306
306
|
quotes: [
|
|
307
|
-
|
|
307
|
+
1,
|
|
308
308
|
'single',
|
|
309
309
|
{
|
|
310
310
|
avoidEscape: true,
|
|
@@ -314,7 +314,7 @@ module.exports = {
|
|
|
314
314
|
'quote-props': [1, 'as-needed'],
|
|
315
315
|
radix: 1,
|
|
316
316
|
'unicode-bom': 1,
|
|
317
|
-
'valid-jsdoc':
|
|
317
|
+
'valid-jsdoc': 1,
|
|
318
318
|
'spaced-comment': [
|
|
319
319
|
1,
|
|
320
320
|
'always',
|
|
@@ -331,7 +331,7 @@ module.exports = {
|
|
|
331
331
|
},
|
|
332
332
|
],
|
|
333
333
|
'unicorn/import-index': [1, { ignoreImports: true }],
|
|
334
|
-
'filenames/match-regex':
|
|
334
|
+
'filenames/match-regex': 1,
|
|
335
335
|
'unicorn/filename-case': [
|
|
336
336
|
1,
|
|
337
337
|
{
|
|
@@ -342,9 +342,9 @@ module.exports = {
|
|
|
342
342
|
ignore: ['README.md'],
|
|
343
343
|
},
|
|
344
344
|
],
|
|
345
|
-
'react/state-in-constructor':
|
|
345
|
+
'react/state-in-constructor': 1,
|
|
346
346
|
'react/no-deprecated': 1,
|
|
347
|
-
'react/react-in-jsx-scope':
|
|
347
|
+
'react/react-in-jsx-scope': 1,
|
|
348
348
|
'react/display-name': [1, { ignoreTranspilerName: false }],
|
|
349
349
|
'react/jsx-no-bind': [
|
|
350
350
|
1,
|
|
@@ -361,7 +361,7 @@ module.exports = {
|
|
|
361
361
|
'react/jsx-no-undef': 1,
|
|
362
362
|
'react/jsx-uses-react': 1,
|
|
363
363
|
'react/jsx-uses-vars': 1,
|
|
364
|
-
'react/function-component-definition':
|
|
364
|
+
'react/function-component-definition': 1,
|
|
365
365
|
'react/jsx-no-duplicate-props': 1,
|
|
366
366
|
'react/jsx-no-target-blank': 1,
|
|
367
367
|
'react/jsx-tag-spacing': [1, { beforeSelfClosing: 'always' }],
|
|
@@ -382,7 +382,16 @@ module.exports = {
|
|
|
382
382
|
html: false,
|
|
383
383
|
},
|
|
384
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,
|
|
385
393
|
'prettier/prettier': [1, { parser: 'babel' }],
|
|
394
|
+
'jsx-quotes': 1,
|
|
386
395
|
},
|
|
387
396
|
plugins: [
|
|
388
397
|
'prettier',
|
|
@@ -392,6 +401,7 @@ module.exports = {
|
|
|
392
401
|
'unicorn',
|
|
393
402
|
'sonarjs',
|
|
394
403
|
'only-warn',
|
|
404
|
+
'sort-keys-fix',
|
|
395
405
|
],
|
|
396
406
|
ignorePatterns: [
|
|
397
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.0",
|
|
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"
|