@ololoepepe/eslint-config 0.0.4 → 0.0.6
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/package.json +1 -1
- package/src/index.js +10 -20
package/package.json
CHANGED
package/src/index.js
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
module.exports = {
|
|
2
2
|
env: {
|
|
3
|
+
es2021: true,
|
|
3
4
|
node: true
|
|
4
5
|
},
|
|
5
6
|
parser: '@babel/eslint-parser',
|
|
6
7
|
parserOptions: {
|
|
7
|
-
|
|
8
|
+
ecmaFeatures: {
|
|
9
|
+
jsx: true
|
|
10
|
+
},
|
|
11
|
+
ecmaVersion: 'latest',
|
|
12
|
+
requireConfigFile: false,
|
|
13
|
+
sourceType: 'module'
|
|
8
14
|
},
|
|
9
15
|
plugins: ['import'],
|
|
10
16
|
rules: {
|
|
@@ -61,7 +67,7 @@ module.exports = {
|
|
|
61
67
|
'consistent-return': 'off',
|
|
62
68
|
'consistent-this': ['error', 'self'],
|
|
63
69
|
'constructor-super': 'error',
|
|
64
|
-
curly: ['error', '
|
|
70
|
+
curly: ['error', 'all'],
|
|
65
71
|
'default-case': ['error', {
|
|
66
72
|
commentPattern: '^skip\\sdefault'
|
|
67
73
|
}],
|
|
@@ -343,17 +349,7 @@ module.exports = {
|
|
|
343
349
|
}],
|
|
344
350
|
'no-undef-init': 'error',
|
|
345
351
|
'no-undefined': 'off',
|
|
346
|
-
'no-underscore-dangle':
|
|
347
|
-
allow: [],
|
|
348
|
-
allowAfterSuper: false,
|
|
349
|
-
allowAfterThis: false,
|
|
350
|
-
allowAfterThisConstructor: false,
|
|
351
|
-
allowFunctionParams: false,
|
|
352
|
-
allowInArrayDestructuring: false,
|
|
353
|
-
allowInObjectDestructuring: false,
|
|
354
|
-
enforceInClassFields: true,
|
|
355
|
-
enforceInMethodNames: true
|
|
356
|
-
}],
|
|
352
|
+
'no-underscore-dangle': 'off',
|
|
357
353
|
'no-unexpected-multiline': 'error',
|
|
358
354
|
'no-unmodified-loop-condition': 'warn',
|
|
359
355
|
'no-unneeded-ternary': ['error', {
|
|
@@ -409,7 +405,6 @@ module.exports = {
|
|
|
409
405
|
allowAsStatement: false
|
|
410
406
|
}],
|
|
411
407
|
'no-warning-comments': ['warn', {
|
|
412
|
-
decoration: [],
|
|
413
408
|
location: 'start',
|
|
414
409
|
terms: ['fix', 'fixme', 'todo']
|
|
415
410
|
}],
|
|
@@ -491,12 +486,7 @@ module.exports = {
|
|
|
491
486
|
}],
|
|
492
487
|
'semi-style': ['error', 'last'],
|
|
493
488
|
'sort-imports': 'off',
|
|
494
|
-
'sort-keys':
|
|
495
|
-
allowLineSeparatedGroups: false,
|
|
496
|
-
caseSensitive: false,
|
|
497
|
-
minKeys: 2,
|
|
498
|
-
natural: true
|
|
499
|
-
}],
|
|
489
|
+
'sort-keys': 'off',
|
|
500
490
|
'sort-vars': ['error', {
|
|
501
491
|
ignoreCase: true
|
|
502
492
|
}],
|