eslint-config-entva-typescript-base 2.12.0 → 2.15.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.
Files changed (2) hide show
  1. package/index.js +37 -14
  2. package/package.json +6 -6
package/index.js CHANGED
@@ -16,19 +16,6 @@ const getOverrides = (rules, overridePrefix) => rules.reduce((acc, rule) => {
16
16
 
17
17
  export default [
18
18
  ...baseConfig,
19
- {
20
- files: [
21
- '**/*.test.ts',
22
- '**/*.test.tsx',
23
- '**/*.spec.ts',
24
- '**/*.spec.tsx',
25
- ],
26
- languageOptions: {
27
- globals: {
28
- ...globals.jest,
29
- },
30
- },
31
- },
32
19
  {
33
20
  files: ['**/*.{ts,tsx}'],
34
21
  plugins: {
@@ -94,7 +81,6 @@ export default [
94
81
  'default-param-last',
95
82
  'dot-notation',
96
83
  'naming-convention',
97
- 'no-unused-vars',
98
84
  'no-shadow',
99
85
  ],
100
86
  '@typescript-eslint',
@@ -116,6 +102,16 @@ export default [
116
102
  '@stylistic/ts',
117
103
  ),
118
104
 
105
+ // Glitchy because of the test rules
106
+ 'import/first': ['error'],
107
+ 'no-unused-vars': ['off'],
108
+ '@typescript-eslint/no-unused-vars': ['error', {
109
+ vars: 'all',
110
+ args: 'after-used',
111
+ ignoreRestSiblings: true,
112
+ caughtErrors: 'none',
113
+ }],
114
+
119
115
  '@typescript-eslint/no-implied-eval': ['error'],
120
116
  '@typescript-eslint/no-loss-of-precision': ['error'],
121
117
  '@typescript-eslint/no-loop-func': ['error'],
@@ -192,4 +188,31 @@ export default [
192
188
  }],
193
189
  },
194
190
  },
191
+ {
192
+ files: [
193
+ '**/*.test.js',
194
+ '**/*.test.cjs',
195
+ '**/*.test.mjs',
196
+ '**/*.test.jsx',
197
+ '**/*.spec.js',
198
+ '**/*.spec.cjs',
199
+ '**/*.spec.mjs',
200
+ '**/*.spec.jsx',
201
+ '**/*.test.ts',
202
+ '**/*.test.tsx',
203
+ '**/*.spec.ts',
204
+ '**/*.spec.tsx',
205
+ '**/__tests__/**',
206
+ ],
207
+ languageOptions: {
208
+ globals: {
209
+ ...globals.jest,
210
+ },
211
+ },
212
+ rules: {
213
+ 'import/first': ['off'],
214
+ 'no-unused-vars': ['off'],
215
+ '@typescript-eslint/no-unused-vars': ['off'],
216
+ },
217
+ },
195
218
  ];
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.0",
12
+ "version": "2.15.0",
13
13
  "keywords": [
14
14
  "linter",
15
15
  "config",
@@ -25,15 +25,15 @@
25
25
  "prepublishOnly": "npm test"
26
26
  },
27
27
  "devDependencies": {
28
- "eslint": "^9.16.0"
28
+ "eslint": "^9.17.0"
29
29
  },
30
30
  "dependencies": {
31
31
  "@stylistic/eslint-plugin-ts": "^2.12.1",
32
- "@typescript-eslint/eslint-plugin": "^8.18.0",
33
- "@typescript-eslint/parser": "^8.18.0",
34
- "eslint-config-entva-base": "^2.12.0",
32
+ "@typescript-eslint/eslint-plugin": "^8.18.2",
33
+ "@typescript-eslint/parser": "^8.18.2",
34
+ "eslint-config-entva-base": "^2.15.0",
35
35
  "eslint-plugin-import": "^2.31.0",
36
- "globals": "^15.13.0"
36
+ "globals": "^15.14.0"
37
37
  },
38
38
  "peerDependencies": {
39
39
  "eslint": "^9.x.x"