@w0s/eslint-config 9.5.1 → 9.6.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/eslint.config.js
CHANGED
|
@@ -74,12 +74,7 @@ export default defineConfig(
|
|
|
74
74
|
},
|
|
75
75
|
],
|
|
76
76
|
'import/no-unresolved': 'off',
|
|
77
|
-
'@typescript-eslint/no-unused-vars':
|
|
78
|
-
'error',
|
|
79
|
-
{
|
|
80
|
-
caughtErrors: 'none',
|
|
81
|
-
},
|
|
82
|
-
],
|
|
77
|
+
'@typescript-eslint/no-unused-vars': 'error',
|
|
83
78
|
'@typescript-eslint/strict-boolean-expressions': [
|
|
84
79
|
'error',
|
|
85
80
|
{
|
package/package.json
CHANGED
|
@@ -8,10 +8,11 @@ export default {
|
|
|
8
8
|
},
|
|
9
9
|
], // eslint-config-airbnb-base@15.0.0; best-practices
|
|
10
10
|
'no-await-in-loop': 'error', // eslint-config-airbnb-base@15.0.0; errors
|
|
11
|
-
'no-cond-assign': ['error', 'always'], // eslint-config-airbnb-base@15.0.0; errors
|
|
11
|
+
'no-cond-assign': ['error', 'always'], // ✅ eslint-config-airbnb-base@15.0.0; errors
|
|
12
12
|
'no-console': 'warn', // eslint-config-airbnb-base@15.0.0; errors
|
|
13
13
|
'no-continue': 'error', // eslint-config-airbnb-base@15.0.0; style
|
|
14
14
|
'no-constructor-return': 'error', // eslint-config-airbnb-base@15.0.0; best-practices
|
|
15
|
+
'no-duplicate-imports': 'error',
|
|
15
16
|
'no-irregular-whitespace': [
|
|
16
17
|
'error',
|
|
17
18
|
{
|
|
@@ -19,7 +20,7 @@ export default {
|
|
|
19
20
|
skipRegExps: true,
|
|
20
21
|
skipTemplates: true,
|
|
21
22
|
},
|
|
22
|
-
],
|
|
23
|
+
], // ✅
|
|
23
24
|
'no-promise-executor-return': 'error', // eslint-config-airbnb-base@15.0.0; errors
|
|
24
25
|
'no-self-compare': 'error', // eslint-config-airbnb-base@15.0.0; best-practices
|
|
25
26
|
'no-template-curly-in-string': 'error', // eslint-config-airbnb-base@15.0.0; errors
|
|
@@ -30,19 +31,13 @@ export default {
|
|
|
30
31
|
{
|
|
31
32
|
disallowArithmeticOperators: true,
|
|
32
33
|
},
|
|
33
|
-
], // eslint-config-airbnb-base@15.0.0; errors
|
|
34
|
-
'no-unused-vars': [
|
|
35
|
-
'error',
|
|
36
|
-
{
|
|
37
|
-
caughtErrors: 'none',
|
|
38
|
-
},
|
|
39
|
-
],
|
|
34
|
+
], // ✅ eslint-config-airbnb-base@15.0.0; errors
|
|
40
35
|
'no-useless-assignment': 'error', // ESLint 10 recommended candidate https://github.com/eslint/eslint/issues/19966
|
|
41
36
|
'valid-typeof': [
|
|
42
37
|
'error',
|
|
43
38
|
{
|
|
44
39
|
requireStringLiterals: true,
|
|
45
40
|
},
|
|
46
|
-
], // eslint-config-airbnb-base@15.0.0; errors
|
|
41
|
+
], // ✅ eslint-config-airbnb-base@15.0.0; errors
|
|
47
42
|
},
|
|
48
43
|
};
|
|
@@ -36,7 +36,6 @@ export default {
|
|
|
36
36
|
},
|
|
37
37
|
], // ✅
|
|
38
38
|
'no-empty-function': 'error',
|
|
39
|
-
'no-empty-static-block': 'error',
|
|
40
39
|
'no-eval': 'error', // eslint-config-airbnb-base@15.0.0; best-practices
|
|
41
40
|
'no-extend-native': 'error', // eslint-config-airbnb-base@15.0.0; best-practices
|
|
42
41
|
'no-extra-bind': 'error', // eslint-config-airbnb-base@15.0.0; best-practices
|
|
@@ -59,12 +58,7 @@ export default {
|
|
|
59
58
|
'no-new-wrappers': 'error', // eslint-config-airbnb-base@15.0.0; best-practices
|
|
60
59
|
'no-object-constructor': 'error',
|
|
61
60
|
'no-octal-escape': 'error', // eslint-config-airbnb-base@15.0.0; best-practices
|
|
62
|
-
'no-param-reassign':
|
|
63
|
-
'error',
|
|
64
|
-
{
|
|
65
|
-
props: false,
|
|
66
|
-
},
|
|
67
|
-
],
|
|
61
|
+
'no-param-reassign': 'error',
|
|
68
62
|
'no-plusplus': 'error', // eslint-config-airbnb-base@15.0.0; style
|
|
69
63
|
'no-proto': 'error', // eslint-config-airbnb-base@15.0.0; best-practices
|
|
70
64
|
'no-restricted-globals': ['error', 'isFinite', 'isNaN'], // eslint-config-airbnb-base@15.0.0; variables
|
|
@@ -82,14 +76,7 @@ export default {
|
|
|
82
76
|
defaultAssignment: false,
|
|
83
77
|
},
|
|
84
78
|
], // eslint-config-airbnb-base@15.0.0; style
|
|
85
|
-
'no-unused-expressions':
|
|
86
|
-
'error',
|
|
87
|
-
{
|
|
88
|
-
allowShortCircuit: false,
|
|
89
|
-
allowTernary: false,
|
|
90
|
-
allowTaggedTemplates: false,
|
|
91
|
-
},
|
|
92
|
-
], // eslint-config-airbnb-base@15.0.0; best-practices
|
|
79
|
+
'no-unused-expressions': 'error', // eslint-config-airbnb-base@15.0.0; best-practices
|
|
93
80
|
'no-use-before-define': 'error', // eslint-config-airbnb-base@15.0.0; variables
|
|
94
81
|
'no-useless-computed-key': 'error', // eslint-config-airbnb-base@15.0.0; es6
|
|
95
82
|
'no-useless-constructor': 'error', // eslint-config-airbnb-base@15.0.0; es6
|
|
@@ -101,12 +88,11 @@ export default {
|
|
|
101
88
|
'no-void': 'error', // eslint-config-airbnb-base@15.0.0; best-practices
|
|
102
89
|
'object-shorthand': ['error', 'methods'],
|
|
103
90
|
'one-var': ['error', 'never'], // eslint-config-airbnb-base@15.0.0; style
|
|
104
|
-
'operator-assignment':
|
|
91
|
+
'operator-assignment': 'error', // eslint-config-airbnb-base@15.0.0; style
|
|
105
92
|
'prefer-arrow-callback': 'error', // eslint-config-airbnb-base@15.0.0; es6
|
|
106
93
|
'prefer-const': [
|
|
107
94
|
'error',
|
|
108
95
|
{
|
|
109
|
-
destructuring: 'any',
|
|
110
96
|
ignoreReadBeforeAssign: true,
|
|
111
97
|
},
|
|
112
98
|
], // eslint-config-airbnb-base@15.0.0; es6
|
|
@@ -141,6 +127,12 @@ export default {
|
|
|
141
127
|
radix: 'error', // eslint-config-airbnb-base@15.0.0; best-practices
|
|
142
128
|
'require-await': 'error',
|
|
143
129
|
'require-unicode-regexp': 'error',
|
|
130
|
+
'sort-imports': [
|
|
131
|
+
'error',
|
|
132
|
+
{
|
|
133
|
+
ignoreDeclarationSort: true,
|
|
134
|
+
},
|
|
135
|
+
],
|
|
144
136
|
strict: 'error',
|
|
145
137
|
'symbol-description': 'error', // eslint-config-airbnb-base@15.0.0; es6
|
|
146
138
|
yoda: 'error', // eslint-config-airbnb-base@15.0.0; best-practices
|
package/rules/import.js
CHANGED
|
@@ -63,7 +63,7 @@ export default {
|
|
|
63
63
|
'import/newline-after-import': 'error',
|
|
64
64
|
/* import/no-anonymous-default-export */
|
|
65
65
|
/* import/no-default-export */
|
|
66
|
-
|
|
66
|
+
'import/no-duplicates': 'off', // ✅ → no-duplicate-imports
|
|
67
67
|
'import/no-named-default': 'error',
|
|
68
68
|
/* import/no-named-export */
|
|
69
69
|
/* import/no-namespace */
|