eslint-config-entva-typescript-base 2.0.0 → 2.2.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 +17 -1
- package/package.json +2 -2
package/index.js
CHANGED
|
@@ -7,6 +7,17 @@ import stylisticTs from '@stylistic/eslint-plugin-ts';
|
|
|
7
7
|
|
|
8
8
|
export default [
|
|
9
9
|
...baseConfig,
|
|
10
|
+
{
|
|
11
|
+
files: [
|
|
12
|
+
'**/*.test.ts',
|
|
13
|
+
'**/*.spec.ts',
|
|
14
|
+
],
|
|
15
|
+
languageOptions: {
|
|
16
|
+
globals: {
|
|
17
|
+
...globals.jest,
|
|
18
|
+
},
|
|
19
|
+
},
|
|
20
|
+
},
|
|
10
21
|
{
|
|
11
22
|
files: ['**/*.{js,mjs,cjs,ts}'],
|
|
12
23
|
plugins: {
|
|
@@ -102,6 +113,7 @@ export default [
|
|
|
102
113
|
after: true,
|
|
103
114
|
}],
|
|
104
115
|
|
|
116
|
+
'default-param-last': 'off',
|
|
105
117
|
'@typescript-eslint/default-param-last': ['error'],
|
|
106
118
|
|
|
107
119
|
'@typescript-eslint/dot-notation': ['error', {
|
|
@@ -213,9 +225,11 @@ export default [
|
|
|
213
225
|
}],
|
|
214
226
|
|
|
215
227
|
'@typescript-eslint/no-redeclare': ['error'],
|
|
216
|
-
'@typescript-eslint/no-shadow': ['error'],
|
|
217
228
|
'@stylistic/ts/space-before-blocks': ['error'],
|
|
218
229
|
|
|
230
|
+
'no-shadow': 'off',
|
|
231
|
+
'@typescript-eslint/no-shadow': ['error'],
|
|
232
|
+
|
|
219
233
|
'@typescript-eslint/no-unused-expressions': ['error', {
|
|
220
234
|
allowShortCircuit: false,
|
|
221
235
|
allowTernary: false,
|
|
@@ -223,10 +237,12 @@ export default [
|
|
|
223
237
|
enforceForJSX: false,
|
|
224
238
|
}],
|
|
225
239
|
|
|
240
|
+
'no-unused-vars': 'off',
|
|
226
241
|
'@typescript-eslint/no-unused-vars': ['error', {
|
|
227
242
|
vars: 'all',
|
|
228
243
|
args: 'after-used',
|
|
229
244
|
ignoreRestSiblings: true,
|
|
245
|
+
caughtErrors: 'none',
|
|
230
246
|
}],
|
|
231
247
|
|
|
232
248
|
'@typescript-eslint/no-use-before-define': ['error', {
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"url": "https://github.com/entva/styleguide"
|
|
10
10
|
},
|
|
11
11
|
"bugs": "https://github.com/entva/styleguide/issues",
|
|
12
|
-
"version": "2.
|
|
12
|
+
"version": "2.2.0",
|
|
13
13
|
"keywords": [
|
|
14
14
|
"linter",
|
|
15
15
|
"config",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"@stylistic/eslint-plugin-ts": "^2.12.1",
|
|
32
32
|
"@typescript-eslint/eslint-plugin": "^8.18.0",
|
|
33
33
|
"@typescript-eslint/parser": "^8.18.0",
|
|
34
|
-
"eslint-config-entva-base": "^2.
|
|
34
|
+
"eslint-config-entva-base": "^2.3.0",
|
|
35
35
|
"eslint-plugin-import": "^2.31.0",
|
|
36
36
|
"globals": "^15.13.0"
|
|
37
37
|
},
|