@mikey-pro/eslint-config 4.8.11 → 4.10.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 +36 -27
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -47,7 +47,7 @@ module.exports = {
|
|
|
47
47
|
},
|
|
48
48
|
plugins: ['@typescript-eslint'],
|
|
49
49
|
rules: {
|
|
50
|
-
'@typescript-eslint/naming-convention':
|
|
50
|
+
'@typescript-eslint/naming-convention': 0,
|
|
51
51
|
'import/default': 0,
|
|
52
52
|
'import/named': 0,
|
|
53
53
|
'import/namespace': 0,
|
|
@@ -87,7 +87,7 @@ module.exports = {
|
|
|
87
87
|
files: ['*.toml'],
|
|
88
88
|
parser: 'toml-eslint-parser',
|
|
89
89
|
rules: {
|
|
90
|
-
'prettier/prettier':
|
|
90
|
+
'prettier/prettier': 0,
|
|
91
91
|
},
|
|
92
92
|
},
|
|
93
93
|
{
|
|
@@ -119,15 +119,15 @@ module.exports = {
|
|
|
119
119
|
parser: '@html-eslint/parser',
|
|
120
120
|
plugins: ['@html-eslint'],
|
|
121
121
|
rules: {
|
|
122
|
-
'@html-eslint/indent':
|
|
123
|
-
'@html-eslint/no-extra-spacing-attrs':
|
|
124
|
-
'@html-eslint/require-closing-tags':
|
|
122
|
+
'@html-eslint/indent': 0,
|
|
123
|
+
'@html-eslint/no-extra-spacing-attrs': 0,
|
|
124
|
+
'@html-eslint/require-closing-tags': 0,
|
|
125
125
|
'disable-autofix/@html-eslint/require-closing-tags': [
|
|
126
126
|
1,
|
|
127
127
|
{ selfClosing: 'always' },
|
|
128
128
|
],
|
|
129
129
|
'prettier/prettier': [1, { parser: 'html' }],
|
|
130
|
-
'spaced-comment':
|
|
130
|
+
'spaced-comment': 0,
|
|
131
131
|
},
|
|
132
132
|
},
|
|
133
133
|
{
|
|
@@ -143,6 +143,7 @@ module.exports = {
|
|
|
143
143
|
{
|
|
144
144
|
pragma: 'h',
|
|
145
145
|
pragmaFrag: 'Fragment',
|
|
146
|
+
runtime: 'automatic',
|
|
146
147
|
},
|
|
147
148
|
],
|
|
148
149
|
],
|
|
@@ -225,7 +226,12 @@ module.exports = {
|
|
|
225
226
|
},
|
|
226
227
|
},
|
|
227
228
|
],
|
|
228
|
-
|
|
229
|
+
[
|
|
230
|
+
'@babel/preset-react',
|
|
231
|
+
{
|
|
232
|
+
runtime: 'automatic',
|
|
233
|
+
},
|
|
234
|
+
],
|
|
229
235
|
],
|
|
230
236
|
},
|
|
231
237
|
ecmaVersion: 'latest',
|
|
@@ -244,12 +250,12 @@ module.exports = {
|
|
|
244
250
|
root: true,
|
|
245
251
|
rules: {
|
|
246
252
|
camelcase: 1,
|
|
247
|
-
'class-methods-use-this':
|
|
253
|
+
'class-methods-use-this': 0,
|
|
248
254
|
'constructor-super': 1,
|
|
249
255
|
'dot-notation': 1,
|
|
250
|
-
'func-names':
|
|
256
|
+
'func-names': 0,
|
|
251
257
|
'import/extensions': [1, 'never', { ignorePackages: true }],
|
|
252
|
-
'import/no-commonjs':
|
|
258
|
+
'import/no-commonjs': 0,
|
|
253
259
|
'import/no-unresolved': [
|
|
254
260
|
1,
|
|
255
261
|
{ amd: true, commonjs: true, ignore: ['^node:'] },
|
|
@@ -267,15 +273,16 @@ module.exports = {
|
|
|
267
273
|
'keyword-spacing': 1,
|
|
268
274
|
'no-caller': 1,
|
|
269
275
|
'no-confusing-arrow': 1,
|
|
270
|
-
'no-console':
|
|
276
|
+
'no-console': 0,
|
|
271
277
|
'no-const-assign': 1,
|
|
272
278
|
'no-delete-var': 1,
|
|
273
279
|
'no-dupe-class-members': 1,
|
|
274
280
|
'no-dupe-keys': 1,
|
|
275
281
|
'no-duplicate-imports': 1,
|
|
276
282
|
'no-else-return': 1,
|
|
277
|
-
'no-empty':
|
|
278
|
-
'no-empty-pattern':
|
|
283
|
+
'no-empty': 0,
|
|
284
|
+
'no-empty-pattern': 0,
|
|
285
|
+
'no-extra-parens': 0,
|
|
279
286
|
'no-extra-bind': 1,
|
|
280
287
|
'no-extra-semi': 1,
|
|
281
288
|
'no-floating-decimal': 1,
|
|
@@ -284,7 +291,7 @@ module.exports = {
|
|
|
284
291
|
'no-mixed-spaces-and-tabs': [1, 'smart-tabs'],
|
|
285
292
|
'no-multi-str': 1,
|
|
286
293
|
'no-new-wrappers': 1,
|
|
287
|
-
'no-process-exit':
|
|
294
|
+
'no-process-exit': 0,
|
|
288
295
|
'no-proto': 1,
|
|
289
296
|
'no-redeclare': 1,
|
|
290
297
|
'no-restricted-syntax': [
|
|
@@ -305,12 +312,12 @@ module.exports = {
|
|
|
305
312
|
selector: 'WithStatement',
|
|
306
313
|
},
|
|
307
314
|
],
|
|
308
|
-
'no-shadow':
|
|
315
|
+
'no-shadow': 0,
|
|
309
316
|
'no-shadow-restricted-names': 1,
|
|
310
317
|
'no-spaced-func': 1,
|
|
311
318
|
'no-this-before-super': 1,
|
|
312
319
|
'no-undef-init': 1,
|
|
313
|
-
'no-underscore-dangle':
|
|
320
|
+
'no-underscore-dangle': 0,
|
|
314
321
|
'no-unneeded-ternary': 1,
|
|
315
322
|
'no-unused-vars': [
|
|
316
323
|
1,
|
|
@@ -328,7 +335,7 @@ module.exports = {
|
|
|
328
335
|
'no-useless-return': 1,
|
|
329
336
|
'no-var': 1,
|
|
330
337
|
'no-with': 1,
|
|
331
|
-
'object-curly-spacing': [
|
|
338
|
+
'object-curly-spacing': [0, 'always'],
|
|
332
339
|
'object-shorthand': 1,
|
|
333
340
|
'prefer-arrow-callback': 1,
|
|
334
341
|
'prefer-destructuring': [
|
|
@@ -344,7 +351,7 @@ module.exports = {
|
|
|
344
351
|
'prettier/prettier': [1, { parser: 'babel' }],
|
|
345
352
|
'quote-props': [1, 'as-needed'],
|
|
346
353
|
quotes: [
|
|
347
|
-
|
|
354
|
+
0,
|
|
348
355
|
'single',
|
|
349
356
|
{
|
|
350
357
|
allowTemplateLiterals: true,
|
|
@@ -356,7 +363,7 @@ module.exports = {
|
|
|
356
363
|
'react-hooks/rules-of-hooks': 1,
|
|
357
364
|
'react/display-name': [1, { ignoreTranspilerName: false }],
|
|
358
365
|
'react/function-component-definition': [
|
|
359
|
-
|
|
366
|
+
0,
|
|
360
367
|
{ namedComponents: 'arrow-function' },
|
|
361
368
|
],
|
|
362
369
|
'react/jsx-curly-spacing': 1,
|
|
@@ -383,9 +390,10 @@ module.exports = {
|
|
|
383
390
|
'react/no-find-dom-node': 1,
|
|
384
391
|
'react/no-is-mounted': 1,
|
|
385
392
|
'react/no-string-refs': 1,
|
|
393
|
+
'filenames/match-regex': 0,
|
|
386
394
|
'react/prefer-es6-class': 1,
|
|
387
395
|
'react/prefer-stateless-function': 1,
|
|
388
|
-
'react/react-in-jsx-scope':
|
|
396
|
+
'react/react-in-jsx-scope': 0,
|
|
389
397
|
'react/require-render-return': 1,
|
|
390
398
|
'react/self-closing-comp': [
|
|
391
399
|
'error',
|
|
@@ -394,16 +402,17 @@ module.exports = {
|
|
|
394
402
|
html: false,
|
|
395
403
|
},
|
|
396
404
|
],
|
|
397
|
-
'react/state-in-constructor':
|
|
398
|
-
'require-atomic-updates':
|
|
399
|
-
'
|
|
400
|
-
|
|
405
|
+
'react/state-in-constructor': 0,
|
|
406
|
+
'require-atomic-updates': 0,
|
|
407
|
+
'sort-imports': 0,
|
|
408
|
+
'rest-spread-spacing': 0,
|
|
409
|
+
semi: 0,
|
|
401
410
|
'sort-vars': 1,
|
|
402
411
|
'space-before-function-paren': [
|
|
403
|
-
|
|
412
|
+
0,
|
|
404
413
|
{ anonymous: 'always', asyncArrow: 'always', named: 'never' },
|
|
405
414
|
],
|
|
406
|
-
'space-in-parens': [
|
|
415
|
+
'space-in-parens': [0, 'never'],
|
|
407
416
|
'spaced-comment': [
|
|
408
417
|
1,
|
|
409
418
|
'always',
|
|
@@ -432,7 +441,7 @@ module.exports = {
|
|
|
432
441
|
},
|
|
433
442
|
],
|
|
434
443
|
'unicorn/import-index': [1, { ignoreImports: true }],
|
|
435
|
-
'valid-jsdoc':
|
|
444
|
+
'valid-jsdoc': 0,
|
|
436
445
|
},
|
|
437
446
|
settings: {
|
|
438
447
|
'json/sort-package-json': 'pro',
|