@newsteam/eslint-config 1.2.17 → 1.2.19
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/dist/rules/eslint-comments.d.ts.map +1 -1
- package/dist/rules/eslint-comments.js +0 -6
- package/dist/rules/import-x.d.ts.map +1 -1
- package/dist/rules/import-x.js +1 -3
- package/dist/rules/perfectionist.d.ts.map +1 -1
- package/dist/rules/perfectionist.js +2 -0
- package/dist/rules/react-19-upgrade.d.ts.map +1 -1
- package/dist/rules/react-19-upgrade.js +3 -0
- package/dist/rules/react-hooks.d.ts.map +1 -1
- package/dist/rules/react-hooks.js +8 -9
- package/dist/rules/stylistic.d.ts.map +1 -1
- package/dist/rules/stylistic.js +94 -107
- package/dist/rules/typescript.d.ts.map +1 -1
- package/dist/rules/typescript.js +13 -0
- package/dist/rules/unicorn.d.ts.map +1 -1
- package/dist/rules/unicorn.js +27 -7
- package/package.json +21 -21
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eslint-comments.d.ts","sourceRoot":"","sources":["../../src/rules/eslint-comments.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AASrC,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"eslint-comments.d.ts","sourceRoot":"","sources":["../../src/rules/eslint-comments.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AASrC,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,MAwE/C,CAAC"}
|
|
@@ -40,12 +40,6 @@ export const eslintCommentsPluginConfig = {
|
|
|
40
40
|
* https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unlimited-disable.html
|
|
41
41
|
*/
|
|
42
42
|
"eslint-comments/no-unlimited-disable": "warn",
|
|
43
|
-
/*
|
|
44
|
-
* Disallow unused eslint-disable comments
|
|
45
|
-
*
|
|
46
|
-
* https://eslint-community.github.io/eslint-plugin-eslint-comments/rules/no-unused-disable.html
|
|
47
|
-
*/
|
|
48
|
-
"eslint-comments/no-unused-disable": "warn",
|
|
49
43
|
/*
|
|
50
44
|
* Disallow unused eslint-enable comments
|
|
51
45
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"import-x.d.ts","sourceRoot":"","sources":["../../src/rules/import-x.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAER,MAAM,EACT,MAAM,QAAQ,CAAC;AAGhB,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"import-x.d.ts","sourceRoot":"","sources":["../../src/rules/import-x.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAER,MAAM,EACT,MAAM,QAAQ,CAAC;AAGhB,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MA2fxC,CAAC"}
|
package/dist/rules/import-x.js
CHANGED
|
@@ -345,11 +345,9 @@ export const importXPluginConfig = {
|
|
|
345
345
|
/*
|
|
346
346
|
* Prevent unnecessary path segments in import and require statements
|
|
347
347
|
*
|
|
348
|
-
* BROKEN
|
|
349
|
-
*
|
|
350
348
|
* https://github.com/un-ts/eslint-plugin-import-x/blob/master/docs/rules/no-useless-path-segments.md
|
|
351
349
|
*/
|
|
352
|
-
"import-x/no-useless-path-segments": "
|
|
350
|
+
"import-x/no-useless-path-segments": "warn",
|
|
353
351
|
/*
|
|
354
352
|
* Forbid webpack loader syntax in imports
|
|
355
353
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"perfectionist.d.ts","sourceRoot":"","sources":["../../src/rules/perfectionist.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGrC,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"perfectionist.d.ts","sourceRoot":"","sources":["../../src/rules/perfectionist.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAGrC,eAAO,MAAM,yBAAyB,EAAE,MAAM,CAAC,MA8F9C,CAAC"}
|
|
@@ -5,6 +5,8 @@ export const perfectionistPluginConfig = {
|
|
|
5
5
|
},
|
|
6
6
|
rules: {
|
|
7
7
|
"perfectionist/sort-array-includes": "warn",
|
|
8
|
+
// Dangerous imo
|
|
9
|
+
"perfectionist/sort-arrays": "off",
|
|
8
10
|
"perfectionist/sort-astro-attributes": "off",
|
|
9
11
|
"perfectionist/sort-classes": "off",
|
|
10
12
|
"perfectionist/sort-decorators": "warn",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-19-upgrade.d.ts","sourceRoot":"","sources":["../../src/rules/react-19-upgrade.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAQrC,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"react-19-upgrade.d.ts","sourceRoot":"","sources":["../../src/rules/react-19-upgrade.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAQrC,eAAO,MAAM,0BAA0B,EAAE,MAAM,CAAC,MAgB/C,CAAC"}
|
|
@@ -13,6 +13,9 @@ export const react19UpgradePluginConfig = {
|
|
|
13
13
|
"react-19-upgrade/no-defaultprops": "warn",
|
|
14
14
|
"react-19-upgrade/no-factories": "warn",
|
|
15
15
|
"react-19-upgrade/no-legacy-context": "warn",
|
|
16
|
+
"react-19-upgrade/no-legacy-react-dom": "warn",
|
|
17
|
+
"react-19-upgrade/no-legacy-react-dom-server": "warn",
|
|
18
|
+
"react-19-upgrade/no-legacy-test-utils-act": "warn",
|
|
16
19
|
"react-19-upgrade/no-prop-types": "warn",
|
|
17
20
|
"react-19-upgrade/no-proptypes": "warn",
|
|
18
21
|
"react-19-upgrade/no-string-refs": "warn",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"react-hooks.d.ts","sourceRoot":"","sources":["../../src/rules/react-hooks.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAWrC,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"react-hooks.d.ts","sourceRoot":"","sources":["../../src/rules/react-hooks.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAWrC,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,MAuL3C,CAAC"}
|
|
@@ -12,19 +12,10 @@ export const reactHooksPluginConfig = {
|
|
|
12
12
|
"react-hooks": reactHooks,
|
|
13
13
|
},
|
|
14
14
|
rules: {
|
|
15
|
-
/*
|
|
16
|
-
* Verifies that automatic effect dependencies are compiled if opted-in
|
|
17
|
-
*/
|
|
18
|
-
"react-hooks/automatic-effect-dependencies": "warn",
|
|
19
15
|
/*
|
|
20
16
|
* Validates against calling capitalized functions/methods instead of using JSX
|
|
21
17
|
*/
|
|
22
18
|
"react-hooks/capitalized-calls": "warn",
|
|
23
|
-
/*
|
|
24
|
-
* Validates against higher order functions defining nested components or hooks.
|
|
25
|
-
* Components and hooks should be defined at the module level
|
|
26
|
-
*/
|
|
27
|
-
"react-hooks/component-hook-factories": "warn",
|
|
28
19
|
/*
|
|
29
20
|
* Validates the compiler configuration options
|
|
30
21
|
*/
|
|
@@ -40,6 +31,10 @@ export const reactHooksPluginConfig = {
|
|
|
40
31
|
*/
|
|
41
32
|
// TODO (this should be turned on eventually)
|
|
42
33
|
"react-hooks/exhaustive-deps": "off",
|
|
34
|
+
/*
|
|
35
|
+
* Validates that effect dependencies are exhaustive and without extraneous values
|
|
36
|
+
*/
|
|
37
|
+
"react-hooks/exhaustive-effect-dependencies": "warn",
|
|
43
38
|
/*
|
|
44
39
|
* Validates usage of fbt
|
|
45
40
|
*
|
|
@@ -80,6 +75,10 @@ export const reactHooksPluginConfig = {
|
|
|
80
75
|
* Internal invariants
|
|
81
76
|
*/
|
|
82
77
|
"react-hooks/invariant": "warn",
|
|
78
|
+
/*
|
|
79
|
+
* Validates that useMemo() and useCallback() specify comprehensive dependencies without extraneous values.
|
|
80
|
+
*/
|
|
81
|
+
"react-hooks/memo-dependencies": "warn",
|
|
83
82
|
/*
|
|
84
83
|
* Validates that effect dependencies are memoized
|
|
85
84
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stylistic.d.ts","sourceRoot":"","sources":["../../src/rules/stylistic.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"stylistic.d.ts","sourceRoot":"","sources":["../../src/rules/stylistic.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAQrC,eAAO,MAAM,qBAAqB,EAAE,MAAM,CAAC,MA+9B1C,CAAC"}
|
package/dist/rules/stylistic.js
CHANGED
|
@@ -13,7 +13,7 @@ export const stylisticPluginConfig = {
|
|
|
13
13
|
/*
|
|
14
14
|
* Enforce linebreaks after opening and before closing array brackets
|
|
15
15
|
*
|
|
16
|
-
* https://eslint.style/rules/
|
|
16
|
+
* https://eslint.style/rules/array-bracket-newline
|
|
17
17
|
*/
|
|
18
18
|
"@stylistic/array-bracket-newline": [
|
|
19
19
|
"warn",
|
|
@@ -22,13 +22,13 @@ export const stylisticPluginConfig = {
|
|
|
22
22
|
/*
|
|
23
23
|
* Enforce consistent spacing inside array brackets
|
|
24
24
|
*
|
|
25
|
-
* https://eslint.style/rules/
|
|
25
|
+
* https://eslint.style/rules/array-bracket-spacing
|
|
26
26
|
*/
|
|
27
27
|
"@stylistic/array-bracket-spacing": "warn",
|
|
28
28
|
/*
|
|
29
29
|
* Enforce line breaks after each array element
|
|
30
30
|
*
|
|
31
|
-
* https://eslint.style/rules/
|
|
31
|
+
* https://eslint.style/rules/array-element-newline
|
|
32
32
|
*/
|
|
33
33
|
"@stylistic/array-element-newline": [
|
|
34
34
|
"warn",
|
|
@@ -37,32 +37,32 @@ export const stylisticPluginConfig = {
|
|
|
37
37
|
/*
|
|
38
38
|
* Require parentheses around arrow function arguments
|
|
39
39
|
*
|
|
40
|
-
* https://eslint.style/rules/
|
|
40
|
+
* https://eslint.style/rules/arrow-parens
|
|
41
41
|
*/
|
|
42
42
|
"@stylistic/arrow-parens": "warn",
|
|
43
43
|
/*
|
|
44
44
|
* Enforce consistent spacing before and after the arrow in arrow functions
|
|
45
45
|
*
|
|
46
|
-
* https://eslint.style/rules/
|
|
46
|
+
* https://eslint.style/rules/arrow-spacing
|
|
47
47
|
*/
|
|
48
48
|
"@stylistic/arrow-spacing": "warn",
|
|
49
49
|
/*
|
|
50
50
|
* Disallow or enforce spaces inside of blocks after opening block and
|
|
51
51
|
* before closing block
|
|
52
52
|
*
|
|
53
|
-
* https://eslint.style/rules/
|
|
53
|
+
* https://eslint.style/rules/block-spacing
|
|
54
54
|
*/
|
|
55
55
|
"@stylistic/block-spacing": "warn",
|
|
56
56
|
/*
|
|
57
57
|
* Enforce consistent brace style for blocks
|
|
58
58
|
*
|
|
59
|
-
* https://eslint.style/rules/
|
|
59
|
+
* https://eslint.style/rules/brace-style
|
|
60
60
|
*/
|
|
61
61
|
"@stylistic/brace-style": "warn",
|
|
62
62
|
/*
|
|
63
63
|
* Require or disallow trailing commas
|
|
64
64
|
*
|
|
65
|
-
* https://eslint.style/rules/
|
|
65
|
+
* https://eslint.style/rules/comma-dangle
|
|
66
66
|
*/
|
|
67
67
|
"@stylistic/comma-dangle": [
|
|
68
68
|
"warn",
|
|
@@ -80,25 +80,25 @@ export const stylisticPluginConfig = {
|
|
|
80
80
|
/*
|
|
81
81
|
* Enforce consistent spacing before and after commas
|
|
82
82
|
*
|
|
83
|
-
* https://eslint.style/rules/
|
|
83
|
+
* https://eslint.style/rules/comma-spacing
|
|
84
84
|
*/
|
|
85
85
|
"@stylistic/comma-spacing": "warn",
|
|
86
86
|
/*
|
|
87
87
|
* Enforce consistent comma style
|
|
88
88
|
*
|
|
89
|
-
* https://eslint.style/rules/
|
|
89
|
+
* https://eslint.style/rules/comma-style
|
|
90
90
|
*/
|
|
91
91
|
"@stylistic/comma-style": "warn",
|
|
92
92
|
/*
|
|
93
93
|
* Enforce consistent spacing inside computed property brackets
|
|
94
94
|
*
|
|
95
|
-
* https://eslint.style/rules/
|
|
95
|
+
* https://eslint.style/rules/computed-property-spacing
|
|
96
96
|
*/
|
|
97
97
|
"@stylistic/computed-property-spacing": "warn",
|
|
98
98
|
/*
|
|
99
99
|
*
|
|
100
100
|
*
|
|
101
|
-
* https://eslint.style/rules/
|
|
101
|
+
* https://eslint.style/rules/curly-newline
|
|
102
102
|
*/
|
|
103
103
|
"@stylistic/curly-newline": [
|
|
104
104
|
"warn",
|
|
@@ -141,7 +141,7 @@ export const stylisticPluginConfig = {
|
|
|
141
141
|
/*
|
|
142
142
|
* Enforce consistent newlines before and after dots
|
|
143
143
|
*
|
|
144
|
-
* https://eslint.style/rules/
|
|
144
|
+
* https://eslint.style/rules/dot-location
|
|
145
145
|
*/
|
|
146
146
|
"@stylistic/dot-location": [
|
|
147
147
|
"warn",
|
|
@@ -150,13 +150,13 @@ export const stylisticPluginConfig = {
|
|
|
150
150
|
/*
|
|
151
151
|
* Require or disallow newline at the end of files
|
|
152
152
|
*
|
|
153
|
-
* https://eslint.style/rules/
|
|
153
|
+
* https://eslint.style/rules/eol-last
|
|
154
154
|
*/
|
|
155
155
|
"@stylistic/eol-last": "warn",
|
|
156
156
|
/*
|
|
157
157
|
* Enforce consistent line break styles for JSX props. (experimental)
|
|
158
158
|
*
|
|
159
|
-
* https://eslint.style/rules/
|
|
159
|
+
* https://eslint.style/rules/jsx-props-style
|
|
160
160
|
*/
|
|
161
161
|
"@stylistic/exp-jsx-props-style": [
|
|
162
162
|
"warn",
|
|
@@ -173,7 +173,7 @@ export const stylisticPluginConfig = {
|
|
|
173
173
|
/*
|
|
174
174
|
* Enforce consistent spacing and line break styles inside brackets. (experimental)
|
|
175
175
|
*
|
|
176
|
-
* https://eslint.style/rules/
|
|
176
|
+
* https://eslint.style/rules/list-style
|
|
177
177
|
*/
|
|
178
178
|
"@stylistic/exp-list-style": [
|
|
179
179
|
"warn",
|
|
@@ -199,7 +199,7 @@ export const stylisticPluginConfig = {
|
|
|
199
199
|
/*
|
|
200
200
|
* Enforce line breaks between arguments of a function call
|
|
201
201
|
*
|
|
202
|
-
* https://eslint.style/rules/
|
|
202
|
+
* https://eslint.style/rules/function-call-argument-newline
|
|
203
203
|
*/
|
|
204
204
|
"@stylistic/function-call-argument-newline": [
|
|
205
205
|
"warn",
|
|
@@ -209,31 +209,31 @@ export const stylisticPluginConfig = {
|
|
|
209
209
|
* Require or disallow spacing between function identifiers and their
|
|
210
210
|
* invocations
|
|
211
211
|
*
|
|
212
|
-
* https://eslint.style/rules/
|
|
212
|
+
* https://eslint.style/rules/function-call-spacing
|
|
213
213
|
*/
|
|
214
214
|
"@stylistic/function-call-spacing": "warn",
|
|
215
215
|
/*
|
|
216
216
|
* Enforce consistent line breaks inside function parentheses
|
|
217
217
|
*
|
|
218
|
-
* https://eslint.style/rules/
|
|
218
|
+
* https://eslint.style/rules/function-paren-newline
|
|
219
219
|
*/
|
|
220
220
|
"@stylistic/function-paren-newline": ["warn", "consistent"],
|
|
221
221
|
/*
|
|
222
222
|
* Enforce consistent spacing around * operators in generator functions
|
|
223
223
|
*
|
|
224
|
-
* https://eslint.style/rules/
|
|
224
|
+
* https://eslint.style/rules/generator-star-spacing
|
|
225
225
|
*/
|
|
226
226
|
"@stylistic/generator-star-spacing": "warn",
|
|
227
227
|
/*
|
|
228
228
|
* Enforce the location of arrow function bodies
|
|
229
229
|
*
|
|
230
|
-
* https://eslint.style/rules/
|
|
230
|
+
* https://eslint.style/rules/implicit-arrow-linebreak
|
|
231
231
|
*/
|
|
232
232
|
"@stylistic/implicit-arrow-linebreak": "warn",
|
|
233
233
|
/*
|
|
234
234
|
* Enforce consistent indentation
|
|
235
235
|
*
|
|
236
|
-
* https://eslint.style/rules/
|
|
236
|
+
* https://eslint.style/rules/indent
|
|
237
237
|
*/
|
|
238
238
|
"@stylistic/indent": [
|
|
239
239
|
"warn",
|
|
@@ -246,7 +246,7 @@ export const stylisticPluginConfig = {
|
|
|
246
246
|
/*
|
|
247
247
|
* Enforce consistent indentation
|
|
248
248
|
*
|
|
249
|
-
* https://eslint.style/rules/
|
|
249
|
+
* https://eslint.style/rules/indent-binary-ops
|
|
250
250
|
*/
|
|
251
251
|
"@stylistic/indent-binary-ops": [
|
|
252
252
|
"warn",
|
|
@@ -255,19 +255,19 @@ export const stylisticPluginConfig = {
|
|
|
255
255
|
/*
|
|
256
256
|
* Enforce or disallow spaces inside of curly braces in JSX attributes and expressions.
|
|
257
257
|
*
|
|
258
|
-
* https://eslint.style/rules/
|
|
258
|
+
* https://eslint.style/rules/jsx-child-element-spacing
|
|
259
259
|
*/
|
|
260
260
|
"@stylistic/jsx-child-element-spacing": "warn",
|
|
261
261
|
/*
|
|
262
262
|
* Validate closing bracket location in JSX (fixable)
|
|
263
263
|
*
|
|
264
|
-
* https://eslint.style/rules/
|
|
264
|
+
* https://eslint.style/rules/jsx-closing-bracket-location
|
|
265
265
|
*/
|
|
266
266
|
"@stylistic/jsx-closing-bracket-location": "warn",
|
|
267
267
|
/*
|
|
268
268
|
* Validate closing tag location in JSX (fixable)
|
|
269
269
|
*
|
|
270
|
-
* https://eslint.style/rules/
|
|
270
|
+
* https://eslint.style/rules/jsx-closing-tag-location
|
|
271
271
|
*/
|
|
272
272
|
"@stylistic/jsx-closing-tag-location": "warn",
|
|
273
273
|
/*
|
|
@@ -275,19 +275,19 @@ export const stylisticPluginConfig = {
|
|
|
275
275
|
*
|
|
276
276
|
* This conflicts with react/jsx-no-literals. Leaving off for now.
|
|
277
277
|
*
|
|
278
|
-
* https://eslint.style/rules/
|
|
278
|
+
* https://eslint.style/rules/jsx-curly-brace-presence
|
|
279
279
|
*/
|
|
280
280
|
"@stylistic/jsx-curly-brace-presence": "off",
|
|
281
281
|
/*
|
|
282
282
|
* Enforce linebreaks in curly braces in JSX attributes and expressions. (fixable)
|
|
283
283
|
*
|
|
284
|
-
* https://eslint.style/rules/
|
|
284
|
+
* https://eslint.style/rules/jsx-curly-newline
|
|
285
285
|
*/
|
|
286
286
|
"@stylistic/jsx-curly-newline": ["warn", "consistent"],
|
|
287
287
|
/*
|
|
288
288
|
* Enforce or disallow spaces inside of curly braces in JSX attributes and expressions (fixable)
|
|
289
289
|
*
|
|
290
|
-
* https://eslint.style/rules/
|
|
290
|
+
* https://eslint.style/rules/jsx-curly-spacing
|
|
291
291
|
*/
|
|
292
292
|
"@stylistic/jsx-curly-spacing": [
|
|
293
293
|
"warn",
|
|
@@ -299,25 +299,25 @@ export const stylisticPluginConfig = {
|
|
|
299
299
|
/*
|
|
300
300
|
* Enforce or disallow spaces around equal signs in JSX attributes (fixable)
|
|
301
301
|
*
|
|
302
|
-
* https://eslint.style/rules/
|
|
302
|
+
* https://eslint.style/rules/jsx-equals-spacing
|
|
303
303
|
*/
|
|
304
304
|
"@stylistic/jsx-equals-spacing": "warn",
|
|
305
305
|
/*
|
|
306
306
|
* Enforce position of the first prop in JSX (fixable)
|
|
307
307
|
*
|
|
308
|
-
* https://eslint.style/rules/
|
|
308
|
+
* https://eslint.style/rules/jsx-first-prop-new-line
|
|
309
309
|
*/
|
|
310
310
|
"@stylistic/jsx-first-prop-new-line": "warn",
|
|
311
311
|
/*
|
|
312
312
|
* Enforce line breaks before and after JSX elements when they are used as arguments to a function.
|
|
313
313
|
*
|
|
314
|
-
* https://eslint.style/rules/
|
|
314
|
+
* https://eslint.style/rules/jsx-function-call-newline
|
|
315
315
|
*/
|
|
316
316
|
"@stylistic/jsx-function-call-newline": ["warn", "multiline"],
|
|
317
317
|
/*
|
|
318
318
|
* Validate props indentation in JSX (fixable)
|
|
319
319
|
*
|
|
320
|
-
* https://eslint.style/rules/
|
|
320
|
+
* https://eslint.style/rules/jsx-indent-props
|
|
321
321
|
*/
|
|
322
322
|
"@stylistic/jsx-indent-props": "warn",
|
|
323
323
|
/*
|
|
@@ -326,7 +326,7 @@ export const stylisticPluginConfig = {
|
|
|
326
326
|
* This is off for now because it causes --fix to get into a fight with
|
|
327
327
|
* 'react/jsx-indent', causing an infinite loop of fixing
|
|
328
328
|
*
|
|
329
|
-
* https://eslint.style/rules/
|
|
329
|
+
* https://eslint.style/rules/jsx-max-props-per-line
|
|
330
330
|
*/
|
|
331
331
|
"@stylistic/jsx-max-props-per-line": [
|
|
332
332
|
"warn",
|
|
@@ -337,62 +337,49 @@ export const stylisticPluginConfig = {
|
|
|
337
337
|
*
|
|
338
338
|
* This is off for now because it this would make too much empty space
|
|
339
339
|
*
|
|
340
|
-
* https://eslint.style/rules/
|
|
340
|
+
* https://eslint.style/rules/jsx-newline
|
|
341
341
|
*/
|
|
342
342
|
"@stylistic/jsx-newline": "off",
|
|
343
343
|
/*
|
|
344
344
|
* Limit to one expression per line in JSX
|
|
345
345
|
*
|
|
346
|
-
* https://eslint.style/rules/
|
|
346
|
+
* https://eslint.style/rules/jsx-one-expression-per-line
|
|
347
347
|
*/
|
|
348
348
|
"@stylistic/jsx-one-expression-per-line": "warn",
|
|
349
349
|
/*
|
|
350
350
|
* Enforces coding style that user-defined JSX components are defined and referenced in PascalCase.
|
|
351
351
|
*
|
|
352
|
-
* https://eslint.style/rules/
|
|
352
|
+
* https://eslint.style/rules/jsx-pascal-case
|
|
353
353
|
*/
|
|
354
354
|
"@stylistic/jsx-pascal-case": "warn",
|
|
355
355
|
/*
|
|
356
356
|
* Enforce the consistent use of either double or single quotes in JSX attributes
|
|
357
357
|
*
|
|
358
|
-
* https://eslint.style/rules/
|
|
358
|
+
* https://eslint.style/rules/jsx-quotes
|
|
359
359
|
*/
|
|
360
360
|
"@stylistic/jsx-quotes": "warn",
|
|
361
361
|
/*
|
|
362
362
|
* Prevent extra closing tags for components without children (fixable)
|
|
363
363
|
*
|
|
364
|
-
* https://eslint.style/rules/
|
|
364
|
+
* https://eslint.style/rules/self-closing-comp
|
|
365
365
|
*/
|
|
366
366
|
"@stylistic/jsx-self-closing-comp": "warn",
|
|
367
|
-
/*
|
|
368
|
-
* Enforce props alphabetical sorting (fixable)
|
|
369
|
-
*
|
|
370
|
-
* Handled by eslint-plugin-perfectionst
|
|
371
|
-
*
|
|
372
|
-
* https://eslint.style/rules/default/jsx-sort-props
|
|
373
|
-
*/
|
|
374
|
-
"@stylistic/jsx-sort-props": [
|
|
375
|
-
"off",
|
|
376
|
-
{
|
|
377
|
-
ignoreCase: true,
|
|
378
|
-
},
|
|
379
|
-
],
|
|
380
367
|
/*
|
|
381
368
|
* Validate whitespace in and around the JSX opening and closing brackets (fixable)
|
|
382
369
|
*
|
|
383
|
-
* https://eslint.style/rules/
|
|
370
|
+
* https://eslint.style/rules/jsx-tag-spacing
|
|
384
371
|
*/
|
|
385
372
|
"@stylistic/jsx-tag-spacing": "warn",
|
|
386
373
|
/*
|
|
387
374
|
* Prevent missing parentheses around multilines JSX (fixable)
|
|
388
375
|
*
|
|
389
|
-
* https://eslint.style/rules/
|
|
376
|
+
* https://eslint.style/rules/jsx-wrap-multilines
|
|
390
377
|
*/
|
|
391
378
|
"@stylistic/jsx-wrap-multilines": "warn",
|
|
392
379
|
/*
|
|
393
380
|
* Enforce consistent spacing between keys and values in object literal properties
|
|
394
381
|
*
|
|
395
|
-
* https://eslint.style/rules/
|
|
382
|
+
* https://eslint.style/rules/key-spacing
|
|
396
383
|
*/
|
|
397
384
|
"@stylistic/key-spacing": [
|
|
398
385
|
"warn",
|
|
@@ -405,7 +392,7 @@ export const stylisticPluginConfig = {
|
|
|
405
392
|
/*
|
|
406
393
|
* Enforce consistent spacing before and after keywords
|
|
407
394
|
*
|
|
408
|
-
* https://eslint.style/rules/
|
|
395
|
+
* https://eslint.style/rules/keyword-spacing
|
|
409
396
|
*/
|
|
410
397
|
"@stylistic/keyword-spacing": [
|
|
411
398
|
"warn",
|
|
@@ -471,25 +458,25 @@ export const stylisticPluginConfig = {
|
|
|
471
458
|
/*
|
|
472
459
|
* Line comments can be positioned above or beside code. This rule helps teams maintain a consistent style.
|
|
473
460
|
*
|
|
474
|
-
* https://eslint.style/rules/
|
|
461
|
+
* https://eslint.style/rules/line-comment-position
|
|
475
462
|
*/
|
|
476
463
|
"@stylistic/line-comment-position": "warn",
|
|
477
464
|
/*
|
|
478
465
|
* Enforce consistent linebreak style
|
|
479
466
|
*
|
|
480
|
-
* https://eslint.style/rules/
|
|
467
|
+
* https://eslint.style/rules/linebreak-style
|
|
481
468
|
*/
|
|
482
469
|
"@stylistic/linebreak-style": "warn",
|
|
483
470
|
/*
|
|
484
471
|
* Require empty lines around comments
|
|
485
472
|
*
|
|
486
|
-
* https://eslint.style/rules/
|
|
473
|
+
* https://eslint.style/rules/lines-around-comment
|
|
487
474
|
*/
|
|
488
475
|
"@stylistic/lines-around-comment": "warn",
|
|
489
476
|
/*
|
|
490
477
|
* Require or disallow an empty line between class members
|
|
491
478
|
*
|
|
492
|
-
* https://eslint.style/rules/
|
|
479
|
+
* https://eslint.style/rules/lines-between-class-members
|
|
493
480
|
*/
|
|
494
481
|
"@stylistic/lines-between-class-members": [
|
|
495
482
|
"warn",
|
|
@@ -501,7 +488,7 @@ export const stylisticPluginConfig = {
|
|
|
501
488
|
/*
|
|
502
489
|
* Enforce a maximum line length
|
|
503
490
|
*
|
|
504
|
-
* https://eslint.style/rules/
|
|
491
|
+
* https://eslint.style/rules/max-len
|
|
505
492
|
*/
|
|
506
493
|
"@stylistic/max-len": [
|
|
507
494
|
"warn",
|
|
@@ -513,7 +500,7 @@ export const stylisticPluginConfig = {
|
|
|
513
500
|
/*
|
|
514
501
|
* Enforce a maximum number of statements allowed per line
|
|
515
502
|
*
|
|
516
|
-
* https://eslint.style/rules/
|
|
503
|
+
* https://eslint.style/rules/max-statements-per-line
|
|
517
504
|
*/
|
|
518
505
|
"@stylistic/max-statements-per-line": [
|
|
519
506
|
"warn",
|
|
@@ -524,7 +511,7 @@ export const stylisticPluginConfig = {
|
|
|
524
511
|
/*
|
|
525
512
|
* Require a specific member delimiter style for interfaces and type literals
|
|
526
513
|
*
|
|
527
|
-
* https://eslint.style/rules/
|
|
514
|
+
* https://eslint.style/rules/member-delimiter-style
|
|
528
515
|
*/
|
|
529
516
|
"@stylistic/member-delimiter-style": "warn",
|
|
530
517
|
/*
|
|
@@ -534,25 +521,25 @@ export const stylisticPluginConfig = {
|
|
|
534
521
|
*
|
|
535
522
|
* Off because it's annoying
|
|
536
523
|
*
|
|
537
|
-
* https://eslint.style/rules/
|
|
524
|
+
* https://eslint.style/rules/multiline-comment-style
|
|
538
525
|
*/
|
|
539
526
|
"@stylistic/multiline-comment-style": "off",
|
|
540
527
|
/*
|
|
541
528
|
* Enforce newlines between operands of ternary expressions
|
|
542
529
|
*
|
|
543
|
-
* https://eslint.style/rules/
|
|
530
|
+
* https://eslint.style/rules/multiline-ternary
|
|
544
531
|
*/
|
|
545
532
|
"@stylistic/multiline-ternary": ["warn", "always-multiline"],
|
|
546
533
|
/*
|
|
547
534
|
* Require parentheses when invoking a constructor with no arguments
|
|
548
535
|
*
|
|
549
|
-
* https://eslint.style/rules/
|
|
536
|
+
* https://eslint.style/rules/new-parens
|
|
550
537
|
*/
|
|
551
538
|
"@stylistic/new-parens": "warn",
|
|
552
539
|
/*
|
|
553
540
|
* Require a newline after each call in a method chain
|
|
554
541
|
*
|
|
555
|
-
* https://eslint.style/rules/
|
|
542
|
+
* https://eslint.style/rules/newline-per-chained-call
|
|
556
543
|
*/
|
|
557
544
|
"@stylistic/newline-per-chained-call": [
|
|
558
545
|
"warn",
|
|
@@ -565,13 +552,13 @@ export const stylisticPluginConfig = {
|
|
|
565
552
|
*
|
|
566
553
|
* Off for now because I believe in myself
|
|
567
554
|
*
|
|
568
|
-
* https://eslint.style/rules/
|
|
555
|
+
* https://eslint.style/rules/no-confusing-arrow
|
|
569
556
|
*/
|
|
570
557
|
"@stylistic/no-confusing-arrow": "off",
|
|
571
558
|
/*
|
|
572
559
|
* Disallow unnecessary parentheses
|
|
573
560
|
*
|
|
574
|
-
* https://eslint.style/rules/
|
|
561
|
+
* https://eslint.style/rules/no-extra-parens
|
|
575
562
|
*/
|
|
576
563
|
"@stylistic/no-extra-parens": [
|
|
577
564
|
"warn",
|
|
@@ -585,13 +572,13 @@ export const stylisticPluginConfig = {
|
|
|
585
572
|
/*
|
|
586
573
|
* Disallow unnecessary semicolons
|
|
587
574
|
*
|
|
588
|
-
* https://eslint.style/rules/
|
|
575
|
+
* https://eslint.style/rules/no-extra-semi
|
|
589
576
|
*/
|
|
590
577
|
"@stylistic/no-extra-semi": "warn",
|
|
591
578
|
/*
|
|
592
579
|
* Disallow leading or trailing decimal points in numeric literals
|
|
593
580
|
*
|
|
594
|
-
* https://eslint.style/rules/
|
|
581
|
+
* https://eslint.style/rules/no-floating-decimal
|
|
595
582
|
*/
|
|
596
583
|
"@stylistic/no-floating-decimal": "warn",
|
|
597
584
|
/*
|
|
@@ -599,55 +586,55 @@ export const stylisticPluginConfig = {
|
|
|
599
586
|
*
|
|
600
587
|
* Using mixed operators is chilled
|
|
601
588
|
*
|
|
602
|
-
* https://eslint.style/rules/
|
|
589
|
+
* https://eslint.style/rules/no-mixed-operators
|
|
603
590
|
*/
|
|
604
591
|
"@stylistic/no-mixed-operators": "off",
|
|
605
592
|
/*
|
|
606
593
|
* Disallow mixed spaces and tabs for indentation
|
|
607
594
|
*
|
|
608
|
-
* https://eslint.style/rules/
|
|
595
|
+
* https://eslint.style/rules/no-mixed-spaces-and-tabs
|
|
609
596
|
*/
|
|
610
597
|
"@stylistic/no-mixed-spaces-and-tabs": "warn",
|
|
611
598
|
/*
|
|
612
599
|
* Disallow multiple spaces
|
|
613
600
|
*
|
|
614
|
-
* https://eslint.style/rules/
|
|
601
|
+
* https://eslint.style/rules/no-multi-spaces
|
|
615
602
|
*/
|
|
616
603
|
"@stylistic/no-multi-spaces": "warn",
|
|
617
604
|
/*
|
|
618
605
|
* Disallow multiple empty lines
|
|
619
606
|
*
|
|
620
|
-
* https://eslint.style/rules/
|
|
607
|
+
* https://eslint.style/rules/no-multiple-empty-lines
|
|
621
608
|
*/
|
|
622
609
|
"@stylistic/no-multiple-empty-lines": "warn",
|
|
623
610
|
/*
|
|
624
611
|
* Disallow all tabs
|
|
625
612
|
*
|
|
626
|
-
* https://eslint.style/rules/
|
|
613
|
+
* https://eslint.style/rules/no-tabs
|
|
627
614
|
*/
|
|
628
615
|
"@stylistic/no-tabs": "warn",
|
|
629
616
|
/*
|
|
630
617
|
* Disallow trailing whitespace at the end of lines
|
|
631
618
|
*
|
|
632
|
-
* https://eslint.style/rules/
|
|
619
|
+
* https://eslint.style/rules/no-trailing-spaces
|
|
633
620
|
*/
|
|
634
621
|
"@stylistic/no-trailing-spaces": "warn",
|
|
635
622
|
/*
|
|
636
623
|
* Disallow whitespace before properties
|
|
637
624
|
*
|
|
638
|
-
* https://eslint.style/rules/
|
|
625
|
+
* https://eslint.style/rules/no-whitespace-before-property
|
|
639
626
|
*/
|
|
640
627
|
"@stylistic/no-whitespace-before-property": "warn",
|
|
641
628
|
/*
|
|
642
629
|
* Enforce the location of single-line statements
|
|
643
630
|
*
|
|
644
|
-
* https://eslint.style/rules/
|
|
631
|
+
* https://eslint.style/rules/nonblock-statement-body-position
|
|
645
632
|
*/
|
|
646
633
|
"@stylistic/nonblock-statement-body-position": "warn",
|
|
647
634
|
/*
|
|
648
635
|
* Enforce consistent line breaks inside braces
|
|
649
636
|
*
|
|
650
|
-
* https://eslint.style/rules/
|
|
637
|
+
* https://eslint.style/rules/object-curly-newline
|
|
651
638
|
*/
|
|
652
639
|
"@stylistic/object-curly-newline": [
|
|
653
640
|
"warn",
|
|
@@ -677,13 +664,13 @@ export const stylisticPluginConfig = {
|
|
|
677
664
|
/*
|
|
678
665
|
* Enforce consistent spacing inside braces
|
|
679
666
|
*
|
|
680
|
-
* https://eslint.style/rules/
|
|
667
|
+
* https://eslint.style/rules/object-curly-spacing
|
|
681
668
|
*/
|
|
682
669
|
"@stylistic/object-curly-spacing": ["warn", "always"],
|
|
683
670
|
/*
|
|
684
671
|
* Enforce placing object properties on separate lines
|
|
685
672
|
*
|
|
686
|
-
* https://eslint.style/rules/
|
|
673
|
+
* https://eslint.style/rules/object-property-newline
|
|
687
674
|
*/
|
|
688
675
|
"@stylistic/object-property-newline": [
|
|
689
676
|
"warn",
|
|
@@ -694,13 +681,13 @@ export const stylisticPluginConfig = {
|
|
|
694
681
|
/*
|
|
695
682
|
* Require or disallow newlines around variable declarations
|
|
696
683
|
*
|
|
697
|
-
* https://eslint.style/rules/
|
|
684
|
+
* https://eslint.style/rules/one-var-declaration-per-line
|
|
698
685
|
*/
|
|
699
686
|
"@stylistic/one-var-declaration-per-line": "warn",
|
|
700
687
|
/*
|
|
701
688
|
* Enforce consistent linebreak style for operators
|
|
702
689
|
*
|
|
703
|
-
* https://eslint.style/rules/
|
|
690
|
+
* https://eslint.style/rules/operator-linebreak
|
|
704
691
|
*/
|
|
705
692
|
"@stylistic/operator-linebreak": [
|
|
706
693
|
"warn",
|
|
@@ -712,7 +699,7 @@ export const stylisticPluginConfig = {
|
|
|
712
699
|
/*
|
|
713
700
|
* Require or disallow padding within blocks
|
|
714
701
|
*
|
|
715
|
-
* https://eslint.style/rules/
|
|
702
|
+
* https://eslint.style/rules/padded-blocks
|
|
716
703
|
*/
|
|
717
704
|
"@stylistic/padded-blocks": [
|
|
718
705
|
"warn",
|
|
@@ -728,7 +715,7 @@ export const stylisticPluginConfig = {
|
|
|
728
715
|
/*
|
|
729
716
|
* Require or disallow padding lines between statements
|
|
730
717
|
*
|
|
731
|
-
* https://eslint.style/rules/
|
|
718
|
+
* https://eslint.style/rules/padding-line-between-statements
|
|
732
719
|
*/
|
|
733
720
|
"@stylistic/padding-line-between-statements": [
|
|
734
721
|
"warn",
|
|
@@ -763,37 +750,37 @@ export const stylisticPluginConfig = {
|
|
|
763
750
|
/*
|
|
764
751
|
* Require quotes around object literal property names
|
|
765
752
|
*
|
|
766
|
-
* https://eslint.style/rules/
|
|
753
|
+
* https://eslint.style/rules/quote-props
|
|
767
754
|
*/
|
|
768
755
|
"@stylistic/quote-props": ["warn", "as-needed"],
|
|
769
756
|
/*
|
|
770
757
|
* Enforce the consistent use of either backticks, double, or single quotes
|
|
771
758
|
*
|
|
772
|
-
* https://eslint.style/rules/
|
|
759
|
+
* https://eslint.style/rules/quotes
|
|
773
760
|
*/
|
|
774
761
|
"@stylistic/quotes": "warn",
|
|
775
762
|
/*
|
|
776
763
|
* Enforce spacing between rest and spread operators and their expressions
|
|
777
764
|
*
|
|
778
|
-
* https://eslint.style/rules/
|
|
765
|
+
* https://eslint.style/rules/rest-spread-spacing
|
|
779
766
|
*/
|
|
780
767
|
"@stylistic/rest-spread-spacing": "warn",
|
|
781
768
|
/*
|
|
782
769
|
* Require or disallow semicolons instead of ASI
|
|
783
770
|
*
|
|
784
|
-
* https://eslint.style/rules/
|
|
771
|
+
* https://eslint.style/rules/semi
|
|
785
772
|
*/
|
|
786
773
|
"@stylistic/semi": "warn",
|
|
787
774
|
/*
|
|
788
775
|
* Enforce consistent spacing before and after semicolons
|
|
789
776
|
*
|
|
790
|
-
* https://eslint.style/rules/
|
|
777
|
+
* https://eslint.style/rules/semi-spacing
|
|
791
778
|
*/
|
|
792
779
|
"@stylistic/semi-spacing": "warn",
|
|
793
780
|
/*
|
|
794
781
|
* Enforce location of semicolons
|
|
795
782
|
*
|
|
796
|
-
* https://eslint.style/rules/
|
|
783
|
+
* https://eslint.style/rules/semi-style
|
|
797
784
|
*/
|
|
798
785
|
"@stylistic/semi-style": [
|
|
799
786
|
"warn",
|
|
@@ -802,7 +789,7 @@ export const stylisticPluginConfig = {
|
|
|
802
789
|
/*
|
|
803
790
|
* Enforce consistent spacing before blocks
|
|
804
791
|
*
|
|
805
|
-
* https://eslint.style/rules/
|
|
792
|
+
* https://eslint.style/rules/space-before-blocks
|
|
806
793
|
*/
|
|
807
794
|
"@stylistic/space-before-blocks": [
|
|
808
795
|
"warn",
|
|
@@ -815,7 +802,7 @@ export const stylisticPluginConfig = {
|
|
|
815
802
|
/*
|
|
816
803
|
* Enforce consistent spacing before function definition opening parenthesis
|
|
817
804
|
*
|
|
818
|
-
* https://eslint.style/rules/
|
|
805
|
+
* https://eslint.style/rules/space-before-function-paren
|
|
819
806
|
*/
|
|
820
807
|
"@stylistic/space-before-function-paren": [
|
|
821
808
|
"warn",
|
|
@@ -828,31 +815,31 @@ export const stylisticPluginConfig = {
|
|
|
828
815
|
/*
|
|
829
816
|
* Enforce consistent spacing inside parentheses
|
|
830
817
|
*
|
|
831
|
-
* https://eslint.style/rules/
|
|
818
|
+
* https://eslint.style/rules/space-in-parens
|
|
832
819
|
*/
|
|
833
820
|
"@stylistic/space-in-parens": ["warn", "never"],
|
|
834
821
|
/*
|
|
835
822
|
* Require spacing around infix operators
|
|
836
823
|
*
|
|
837
|
-
* https://eslint.style/rules/
|
|
824
|
+
* https://eslint.style/rules/space-infix-ops
|
|
838
825
|
*/
|
|
839
826
|
"@stylistic/space-infix-ops": "warn",
|
|
840
827
|
/*
|
|
841
828
|
* Enforce consistent spacing before or after unary operators
|
|
842
829
|
*
|
|
843
|
-
* https://eslint.style/rules/
|
|
830
|
+
* https://eslint.style/rules/space-unary-ops
|
|
844
831
|
*/
|
|
845
832
|
"@stylistic/space-unary-ops": "warn",
|
|
846
833
|
/*
|
|
847
834
|
* Enforce consistent spacing after the // or /* in a comment
|
|
848
835
|
*
|
|
849
|
-
* https://eslint.style/rules/
|
|
836
|
+
* https://eslint.style/rules/spaced-comment
|
|
850
837
|
*/
|
|
851
838
|
"@stylistic/spaced-comment": "warn",
|
|
852
839
|
/*
|
|
853
840
|
* Enforce spacing around colons of switch statements
|
|
854
841
|
*
|
|
855
|
-
* https://eslint.style/rules/
|
|
842
|
+
* https://eslint.style/rules/switch-colon-spacing
|
|
856
843
|
*/
|
|
857
844
|
"@stylistic/switch-colon-spacing": [
|
|
858
845
|
"warn",
|
|
@@ -864,7 +851,7 @@ export const stylisticPluginConfig = {
|
|
|
864
851
|
/*
|
|
865
852
|
* Require or disallow spacing around embedded expressions of template strings
|
|
866
853
|
*
|
|
867
|
-
* https://eslint.style/rules/
|
|
854
|
+
* https://eslint.style/rules/template-curly-spacing
|
|
868
855
|
*/
|
|
869
856
|
"@stylistic/template-curly-spacing": [
|
|
870
857
|
"warn",
|
|
@@ -873,43 +860,43 @@ export const stylisticPluginConfig = {
|
|
|
873
860
|
/*
|
|
874
861
|
* Require or disallow spacing between template tags and their literals
|
|
875
862
|
*
|
|
876
|
-
* https://eslint.style/rules/
|
|
863
|
+
* https://eslint.style/rules/template-tag-spacing
|
|
877
864
|
*/
|
|
878
865
|
"@stylistic/template-tag-spacing": "warn",
|
|
879
866
|
/*
|
|
880
867
|
* Require consistent spacing around type annotations
|
|
881
868
|
*
|
|
882
|
-
* https://eslint.style/rules/
|
|
869
|
+
* https://eslint.style/rules/type-annotation-spacing
|
|
883
870
|
*/
|
|
884
871
|
"@stylistic/type-annotation-spacing": "warn",
|
|
885
872
|
/*
|
|
886
873
|
* Enforces consistent spacing inside TypeScript type generics.
|
|
887
874
|
*
|
|
888
|
-
* https://eslint.style/rules/
|
|
875
|
+
* https://eslint.style/rules/type-generic-spacing
|
|
889
876
|
*/
|
|
890
877
|
"@stylistic/type-generic-spacing": "warn",
|
|
891
878
|
/*
|
|
892
879
|
* Expect space before the type declaration in the named tuple.
|
|
893
880
|
*
|
|
894
|
-
* https://eslint.style/rules/
|
|
881
|
+
* https://eslint.style/rules/type-named-tuple-spacing
|
|
895
882
|
*/
|
|
896
883
|
"@stylistic/type-named-tuple-spacing": "warn",
|
|
897
884
|
/*
|
|
898
885
|
* Require parentheses around immediate function invocations
|
|
899
886
|
*
|
|
900
|
-
* https://eslint.style/rules/
|
|
887
|
+
* https://eslint.style/rules/wrap-iife
|
|
901
888
|
*/
|
|
902
889
|
"@stylistic/wrap-iife": "warn",
|
|
903
890
|
/*
|
|
904
891
|
* Require parenthesis around regex literals
|
|
905
892
|
*
|
|
906
|
-
* https://eslint.style/rules/
|
|
893
|
+
* https://eslint.style/rules/wrap-regex
|
|
907
894
|
*/
|
|
908
895
|
"@stylistic/wrap-regex": "warn",
|
|
909
896
|
/*
|
|
910
897
|
* Require or disallow spacing around the * in yield* Expressions
|
|
911
898
|
*
|
|
912
|
-
* https://eslint.style/rules/
|
|
899
|
+
* https://eslint.style/rules/yield-star-spacing
|
|
913
900
|
*/
|
|
914
901
|
"@stylistic/yield-star-spacing": "warn",
|
|
915
902
|
},
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../src/rules/typescript.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAQrC,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"typescript.d.ts","sourceRoot":"","sources":["../../src/rules/typescript.ts"],"names":[],"mappings":"AAoBA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAQrC,eAAO,MAAM,uBAAuB,EAAE,MAAM,CAAC,MAAM,EA40ClD,CAAC"}
|
package/dist/rules/typescript.js
CHANGED
|
@@ -365,6 +365,14 @@ export const typescriptPluginConfigs = [
|
|
|
365
365
|
format: ["camelCase"],
|
|
366
366
|
selector: "method",
|
|
367
367
|
},
|
|
368
|
+
{
|
|
369
|
+
filter: {
|
|
370
|
+
match: true,
|
|
371
|
+
regex: "^--",
|
|
372
|
+
},
|
|
373
|
+
format: null,
|
|
374
|
+
selector: "property",
|
|
375
|
+
},
|
|
368
376
|
{
|
|
369
377
|
filter: {
|
|
370
378
|
match: false,
|
|
@@ -922,6 +930,11 @@ export const typescriptPluginConfigs = [
|
|
|
922
930
|
name: "Redirect",
|
|
923
931
|
package: "@tanstack/router-core",
|
|
924
932
|
},
|
|
933
|
+
{
|
|
934
|
+
from: "package",
|
|
935
|
+
name: "NotFoundError",
|
|
936
|
+
package: "@tanstack/router-core",
|
|
937
|
+
},
|
|
925
938
|
],
|
|
926
939
|
},
|
|
927
940
|
],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"unicorn.d.ts","sourceRoot":"","sources":["../../src/rules/unicorn.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"unicorn.d.ts","sourceRoot":"","sources":["../../src/rules/unicorn.ts"],"names":[],"mappings":"AAiBA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAC;AAQrC,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MA6nCxC,CAAC"}
|
package/dist/rules/unicorn.js
CHANGED
|
@@ -34,7 +34,7 @@ export const unicornPluginConfig = {
|
|
|
34
34
|
"unicorn/catch-error-name": [
|
|
35
35
|
"warn",
|
|
36
36
|
{
|
|
37
|
-
name: "
|
|
37
|
+
name: "error",
|
|
38
38
|
},
|
|
39
39
|
],
|
|
40
40
|
/*
|
|
@@ -73,6 +73,12 @@ export const unicornPluginConfig = {
|
|
|
73
73
|
* https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-function-scoping.md
|
|
74
74
|
*/
|
|
75
75
|
"unicorn/consistent-function-scoping": "warn",
|
|
76
|
+
/*
|
|
77
|
+
* Enforce consistent style for escaping ${ in template literals.
|
|
78
|
+
*
|
|
79
|
+
* https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/consistent-template-literal-escape.md
|
|
80
|
+
*/
|
|
81
|
+
"unicorn/consistent-template-literal-escape": "warn",
|
|
76
82
|
/*
|
|
77
83
|
* Enforce correct Error subclassing. (fixable)
|
|
78
84
|
*
|
|
@@ -442,6 +448,12 @@ export const unicornPluginConfig = {
|
|
|
442
448
|
* https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-fallback-in-spread.md
|
|
443
449
|
*/
|
|
444
450
|
"unicorn/no-useless-fallback-in-spread": "warn",
|
|
451
|
+
/*
|
|
452
|
+
* Disallow unnecessary .toArray() on iterators.
|
|
453
|
+
*
|
|
454
|
+
* https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/no-useless-iterator-to-array.md
|
|
455
|
+
*/
|
|
456
|
+
"unicorn/no-useless-iterator-to-array": "warn",
|
|
445
457
|
/*
|
|
446
458
|
* Disallow useless array length check
|
|
447
459
|
*
|
|
@@ -699,11 +711,9 @@ export const unicornPluginConfig = {
|
|
|
699
711
|
/*
|
|
700
712
|
* Prefer using the node: protocol when importing Node.js builtin modules
|
|
701
713
|
*
|
|
702
|
-
* Off for now since this isn't supported in node < 16 in require() and we compile down to require()
|
|
703
|
-
*
|
|
704
714
|
* https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-node-protocol.md
|
|
705
715
|
*/
|
|
706
|
-
"unicorn/prefer-node-protocol": "
|
|
716
|
+
"unicorn/prefer-node-protocol": "warn",
|
|
707
717
|
/*
|
|
708
718
|
* Prefer Number static properties over global ones.
|
|
709
719
|
*
|
|
@@ -766,6 +776,12 @@ export const unicornPluginConfig = {
|
|
|
766
776
|
* https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-set-size.md
|
|
767
777
|
*/
|
|
768
778
|
"unicorn/prefer-set-size": "warn",
|
|
779
|
+
/*
|
|
780
|
+
* Prefer simple conditions first in logical expressions.
|
|
781
|
+
*
|
|
782
|
+
* https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/prefer-simple-condition-first.md
|
|
783
|
+
*/
|
|
784
|
+
"unicorn/prefer-simple-condition-first": "warn",
|
|
769
785
|
/*
|
|
770
786
|
* Prefer using Set#size instead of Array#length
|
|
771
787
|
*
|
|
@@ -975,13 +991,17 @@ export const unicornPluginConfig = {
|
|
|
975
991
|
"always",
|
|
976
992
|
],
|
|
977
993
|
/*
|
|
978
|
-
*
|
|
994
|
+
* Enforce consistent break/return/continue/throw position in case clauses.
|
|
979
995
|
*
|
|
980
|
-
*
|
|
996
|
+
* https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/switch-case-break-position.md
|
|
997
|
+
*/
|
|
998
|
+
"unicorn/switch-case-break-position": "warn",
|
|
999
|
+
/*
|
|
1000
|
+
* Fix whitespace-insensitive template indentation
|
|
981
1001
|
*
|
|
982
1002
|
* https://github.com/sindresorhus/eslint-plugin-unicorn/blob/main/docs/rules/template-indent.md
|
|
983
1003
|
*/
|
|
984
|
-
"unicorn/template-indent": "
|
|
1004
|
+
"unicorn/template-indent": "warn",
|
|
985
1005
|
/*
|
|
986
1006
|
* Enforce consistent case for text encoding identifiers
|
|
987
1007
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@newsteam/eslint-config",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.19",
|
|
4
4
|
"description": "Shared config for eslint",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -52,41 +52,41 @@
|
|
|
52
52
|
"dist"
|
|
53
53
|
],
|
|
54
54
|
"dependencies": {
|
|
55
|
-
"@bhollis/eslint-plugin-css-modules": "^1.0.
|
|
56
|
-
"@eslint-community/eslint-plugin-eslint-comments": "^4.
|
|
57
|
-
"@eslint/compat": "2.0.
|
|
58
|
-
"@next/eslint-plugin-next": "16.
|
|
59
|
-
"@stylistic/eslint-plugin": "5.
|
|
55
|
+
"@bhollis/eslint-plugin-css-modules": "^1.0.1",
|
|
56
|
+
"@eslint-community/eslint-plugin-eslint-comments": "^4.7.1",
|
|
57
|
+
"@eslint/compat": "2.0.5",
|
|
58
|
+
"@next/eslint-plugin-next": "16.2.4",
|
|
59
|
+
"@stylistic/eslint-plugin": "5.10.0",
|
|
60
60
|
"confusing-browser-globals": "1.0.11",
|
|
61
|
-
"eslint-import-resolver-node": "0.3.
|
|
61
|
+
"eslint-import-resolver-node": "0.3.10",
|
|
62
62
|
"eslint-import-resolver-typescript": "4.4.4",
|
|
63
|
-
"eslint-plugin-array-func": "5.1.
|
|
63
|
+
"eslint-plugin-array-func": "5.1.1",
|
|
64
64
|
"eslint-plugin-destructuring": "2.2.1",
|
|
65
65
|
"eslint-plugin-import-newlines": "2.0.0",
|
|
66
|
-
"eslint-plugin-import-x": "4.16.
|
|
66
|
+
"eslint-plugin-import-x": "4.16.2",
|
|
67
67
|
"eslint-plugin-no-unsanitized": "4.1.5",
|
|
68
68
|
"eslint-plugin-no-useless-assign": "1.0.3",
|
|
69
69
|
"eslint-plugin-node": "11.1.0",
|
|
70
|
-
"eslint-plugin-perfectionist": "5.
|
|
71
|
-
"eslint-plugin-promise": "7.
|
|
70
|
+
"eslint-plugin-perfectionist": "5.9.0",
|
|
71
|
+
"eslint-plugin-promise": "7.3.0",
|
|
72
72
|
"eslint-plugin-react": "7.37.5",
|
|
73
|
-
"eslint-plugin-react-19-upgrade": "1.
|
|
73
|
+
"eslint-plugin-react-19-upgrade": "1.9.0",
|
|
74
74
|
"eslint-plugin-react-compiler": "19.1.0-rc.2",
|
|
75
|
-
"eslint-plugin-react-hooks": "7.
|
|
75
|
+
"eslint-plugin-react-hooks": "7.1.1",
|
|
76
76
|
"eslint-plugin-react-perf": "3.3.3",
|
|
77
|
-
"eslint-plugin-react-refresh": "0.5.
|
|
77
|
+
"eslint-plugin-react-refresh": "0.5.2",
|
|
78
78
|
"eslint-plugin-security": "4.0.0",
|
|
79
|
-
"eslint-plugin-unicorn": "
|
|
80
|
-
"globals": "17.
|
|
81
|
-
"typescript-eslint": "8.
|
|
79
|
+
"eslint-plugin-unicorn": "64.0.0",
|
|
80
|
+
"globals": "17.6.0",
|
|
81
|
+
"typescript-eslint": "8.59.1"
|
|
82
82
|
},
|
|
83
83
|
"peerDependencies": {
|
|
84
84
|
"eslint": ">= 10.0.0"
|
|
85
85
|
},
|
|
86
86
|
"devDependencies": {
|
|
87
87
|
"@types/eslint-plugin-security": "3.0.1",
|
|
88
|
-
"@types/node": "25.
|
|
89
|
-
"@typescript-eslint/utils": "^8.
|
|
90
|
-
"eslint": "10.
|
|
88
|
+
"@types/node": "25.6.0",
|
|
89
|
+
"@typescript-eslint/utils": "^8.59.1",
|
|
90
|
+
"eslint": "10.3.0"
|
|
91
91
|
}
|
|
92
|
-
}
|
|
92
|
+
}
|