eslint-config-entva-typescript-base 2.18.1 → 2.30.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 +10 -7
- package/package.json +8 -8
package/index.js
CHANGED
|
@@ -3,7 +3,7 @@ import importPlugin from 'eslint-plugin-import';
|
|
|
3
3
|
import globals from 'globals';
|
|
4
4
|
import typescriptEslint from '@typescript-eslint/eslint-plugin';
|
|
5
5
|
import tsParser from '@typescript-eslint/parser';
|
|
6
|
-
import stylisticTs from '@stylistic/eslint-plugin
|
|
6
|
+
import stylisticTs from '@stylistic/eslint-plugin';
|
|
7
7
|
|
|
8
8
|
// Many TS rules mirror JS rules, we need to disable JS rule and apply config for the TS replacement
|
|
9
9
|
const getOverrides = (base, rules, overridePrefix) => rules.reduce((acc, rule) => {
|
|
@@ -17,7 +17,7 @@ export const mainRule = {
|
|
|
17
17
|
plugins: {
|
|
18
18
|
import: importPlugin,
|
|
19
19
|
'@typescript-eslint': typescriptEslint,
|
|
20
|
-
'@stylistic
|
|
20
|
+
'@stylistic': stylisticTs,
|
|
21
21
|
},
|
|
22
22
|
|
|
23
23
|
languageOptions: {
|
|
@@ -98,7 +98,7 @@ export const mainRule = {
|
|
|
98
98
|
'object-curly-spacing',
|
|
99
99
|
'quotes',
|
|
100
100
|
],
|
|
101
|
-
'@stylistic
|
|
101
|
+
'@stylistic',
|
|
102
102
|
),
|
|
103
103
|
|
|
104
104
|
'@typescript-eslint/no-implied-eval': ['error'],
|
|
@@ -154,7 +154,7 @@ export const mainRule = {
|
|
|
154
154
|
enforceForArrowConditionals: false,
|
|
155
155
|
}],
|
|
156
156
|
|
|
157
|
-
'@stylistic/
|
|
157
|
+
'@stylistic/member-delimiter-style': ['error', {
|
|
158
158
|
multiline: {
|
|
159
159
|
delimiter: 'comma',
|
|
160
160
|
},
|
|
@@ -163,9 +163,9 @@ export const mainRule = {
|
|
|
163
163
|
delimiter: 'comma',
|
|
164
164
|
},
|
|
165
165
|
}],
|
|
166
|
-
'@stylistic/
|
|
167
|
-
'@stylistic/
|
|
168
|
-
'@stylistic/
|
|
166
|
+
'@stylistic/function-call-spacing': ['error', 'never'],
|
|
167
|
+
'@stylistic/no-extra-semi': ['error'],
|
|
168
|
+
'@stylistic/comma-dangle': ['error', {
|
|
169
169
|
arrays: 'always-multiline',
|
|
170
170
|
objects: 'always-multiline',
|
|
171
171
|
imports: 'always-multiline',
|
|
@@ -175,6 +175,8 @@ export const mainRule = {
|
|
|
175
175
|
generics: 'always-multiline',
|
|
176
176
|
tuples: 'always-multiline',
|
|
177
177
|
}],
|
|
178
|
+
|
|
179
|
+
'@typescript-eslint/no-deprecated': 'error',
|
|
178
180
|
},
|
|
179
181
|
};
|
|
180
182
|
|
|
@@ -192,6 +194,7 @@ export const testRule = {
|
|
|
192
194
|
},
|
|
193
195
|
},
|
|
194
196
|
rules: {
|
|
197
|
+
...baseTestRule.rules,
|
|
195
198
|
...getOverrides(
|
|
196
199
|
baseTestRule.rules,
|
|
197
200
|
[
|
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.30.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.
|
|
28
|
+
"eslint": "^9.32.0"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@stylistic/eslint-plugin
|
|
32
|
-
"@typescript-eslint/eslint-plugin": "^8.
|
|
33
|
-
"@typescript-eslint/parser": "^8.
|
|
34
|
-
"eslint-config-entva-base": "^2.
|
|
35
|
-
"eslint-plugin-import": "^2.
|
|
36
|
-
"globals": "^
|
|
31
|
+
"@stylistic/eslint-plugin": "^5.2.3",
|
|
32
|
+
"@typescript-eslint/eslint-plugin": "^8.39.0",
|
|
33
|
+
"@typescript-eslint/parser": "^8.39.0",
|
|
34
|
+
"eslint-config-entva-base": "^2.x.x",
|
|
35
|
+
"eslint-plugin-import": "^2.32.0",
|
|
36
|
+
"globals": "^16.3.0"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
39
|
"eslint": "^9.x.x"
|