@ololoepepe/eslint-config 0.0.5 → 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 -19
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', {
|
|
@@ -490,12 +486,7 @@ module.exports = {
|
|
|
490
486
|
}],
|
|
491
487
|
'semi-style': ['error', 'last'],
|
|
492
488
|
'sort-imports': 'off',
|
|
493
|
-
'sort-keys':
|
|
494
|
-
allowLineSeparatedGroups: false,
|
|
495
|
-
caseSensitive: false,
|
|
496
|
-
minKeys: 2,
|
|
497
|
-
natural: true
|
|
498
|
-
}],
|
|
489
|
+
'sort-keys': 'off',
|
|
499
490
|
'sort-vars': ['error', {
|
|
500
491
|
ignoreCase: true
|
|
501
492
|
}],
|