eslint-config-heck 3.1.1 → 3.2.1
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/biomeLinting.json +47 -29
- package/node.cjs +2 -1
- package/nodeWithBiome.cjs +8 -15
- package/package.json +12 -12
package/biomeLinting.json
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"noDistractingElements": "error",
|
|
13
13
|
"noHeaderScope": "error",
|
|
14
14
|
"noInteractiveElementToNoninteractiveRole": "error",
|
|
15
|
+
"noLabelWithoutControl": "error",
|
|
15
16
|
"noNoninteractiveElementToInteractiveRole": "error",
|
|
16
17
|
"noNoninteractiveTabindex": "error",
|
|
17
18
|
"noPositiveTabindex": "error",
|
|
@@ -23,12 +24,14 @@
|
|
|
23
24
|
"useAriaActivedescendantWithTabindex": "error",
|
|
24
25
|
"useAriaPropsForRole": "error",
|
|
25
26
|
"useButtonType": "error",
|
|
27
|
+
"useFocusableInteractive": "error",
|
|
26
28
|
"useHeadingContent": "error",
|
|
27
29
|
"useHtmlLang": "error",
|
|
28
30
|
"useIframeTitle": "error",
|
|
29
31
|
"useKeyWithClickEvents": "error",
|
|
30
32
|
"useKeyWithMouseEvents": "error",
|
|
31
33
|
"useMediaCaption": "error",
|
|
34
|
+
"useSemanticElements": "error",
|
|
32
35
|
"useValidAnchor": "error",
|
|
33
36
|
"useValidAriaProps": "error",
|
|
34
37
|
"useValidAriaRole": "error",
|
|
@@ -52,13 +55,16 @@
|
|
|
52
55
|
"noUselessLabel": "error",
|
|
53
56
|
"noUselessLoneBlockStatements": "error",
|
|
54
57
|
"noUselessRename": "error",
|
|
58
|
+
"noUselessStringConcat": "error",
|
|
55
59
|
"noUselessSwitchCase": "error",
|
|
56
60
|
"noUselessTernary": "error",
|
|
57
61
|
"noUselessThisAlias": "error",
|
|
58
62
|
"noUselessTypeConstraint": "error",
|
|
63
|
+
"noUselessUndefinedInitialization": "error",
|
|
59
64
|
"noVoid": "error",
|
|
60
65
|
"noWith": "error",
|
|
61
66
|
"useArrowFunction": "error",
|
|
67
|
+
"useDateNow": "error",
|
|
62
68
|
"useFlatMap": "error",
|
|
63
69
|
"useLiteralKeys": "error",
|
|
64
70
|
"useOptionalChain": "error",
|
|
@@ -77,10 +83,9 @@
|
|
|
77
83
|
"noFlatMapIdentity": "error",
|
|
78
84
|
"noGlobalObjectCalls": "error",
|
|
79
85
|
"noInnerDeclarations": "error",
|
|
86
|
+
"noInvalidBuiltinInstantiation": "error",
|
|
80
87
|
"noInvalidConstructorSuper": "error",
|
|
81
|
-
"noInvalidNewBuiltin": "error",
|
|
82
88
|
"noInvalidUseBeforeDeclaration": "off",
|
|
83
|
-
"noNewSymbol": "off",
|
|
84
89
|
"noNodejsModules": "off",
|
|
85
90
|
"noNonoctalDecimalEscape": "error",
|
|
86
91
|
"noPrecisionLoss": "error",
|
|
@@ -89,12 +94,14 @@
|
|
|
89
94
|
"noSetterReturn": "error",
|
|
90
95
|
"noStringCaseMismatch": "error",
|
|
91
96
|
"noSwitchDeclarations": "error",
|
|
97
|
+
"noUndeclaredDependencies": "off",
|
|
92
98
|
"noUndeclaredVariables": "off",
|
|
93
99
|
"noUnnecessaryContinue": "error",
|
|
94
100
|
"noUnreachable": "error",
|
|
95
101
|
"noUnreachableSuper": "error",
|
|
96
102
|
"noUnsafeFinally": "error",
|
|
97
103
|
"noUnsafeOptionalChaining": "error",
|
|
104
|
+
"noUnusedFunctionParameters": "error",
|
|
98
105
|
"noUnusedImports": "error",
|
|
99
106
|
"noUnusedLabels": "error",
|
|
100
107
|
"noUnusedPrivateClassMembers": "error",
|
|
@@ -104,6 +111,7 @@
|
|
|
104
111
|
"useArrayLiterals": "error",
|
|
105
112
|
"useExhaustiveDependencies": "error",
|
|
106
113
|
"useHookAtTopLevel": "error",
|
|
114
|
+
"useImportExtensions": "off",
|
|
107
115
|
"useIsNan": "error",
|
|
108
116
|
"useJsxKeyInIterable": "error",
|
|
109
117
|
"useValidForDirection": "error",
|
|
@@ -113,7 +121,8 @@
|
|
|
113
121
|
"noAccumulatingSpread": "error",
|
|
114
122
|
"noBarrelFile": "error",
|
|
115
123
|
"noDelete": "error",
|
|
116
|
-
"noReExportAll": "error"
|
|
124
|
+
"noReExportAll": "error",
|
|
125
|
+
"useTopLevelRegex": "error"
|
|
117
126
|
},
|
|
118
127
|
"security": {
|
|
119
128
|
"noDangerouslySetInnerHtml": "error",
|
|
@@ -124,6 +133,7 @@
|
|
|
124
133
|
"noArguments": "error",
|
|
125
134
|
"noCommaOperator": "error",
|
|
126
135
|
"noDefaultExport": "error",
|
|
136
|
+
"noDoneCallback": "error",
|
|
127
137
|
"noImplicitBoolean": "off",
|
|
128
138
|
"noInferrableTypes": "error",
|
|
129
139
|
"noNamespace": "error",
|
|
@@ -137,13 +147,17 @@
|
|
|
137
147
|
"noUnusedTemplateLiteral": "error",
|
|
138
148
|
"noUselessElse": "error",
|
|
139
149
|
"noVar": "error",
|
|
150
|
+
"noYodaExpression": "error",
|
|
140
151
|
"useAsConstAssertion": "error",
|
|
141
152
|
"useBlockStatements": "error",
|
|
142
153
|
"useCollapsedElseIf": "error",
|
|
143
154
|
"useConsistentArrayType": "error",
|
|
155
|
+
"useConsistentBuiltinInstantiation": "error",
|
|
144
156
|
"useConst": "error",
|
|
145
157
|
"useDefaultParameterLast": "error",
|
|
158
|
+
"useDefaultSwitchClause": "off",
|
|
146
159
|
"useEnumInitializers": "error",
|
|
160
|
+
"useExplicitLengthCheck": "error",
|
|
147
161
|
"useExponentiationOperator": "error",
|
|
148
162
|
"useExportType": "error",
|
|
149
163
|
"useFilenamingConvention": {
|
|
@@ -186,9 +200,10 @@
|
|
|
186
200
|
"useShorthandArrayType": "error",
|
|
187
201
|
"useShorthandAssign": "error",
|
|
188
202
|
"useShorthandFunctionType": "error",
|
|
189
|
-
"useSingleCaseStatement": "error",
|
|
190
203
|
"useSingleVarDeclarator": "error",
|
|
191
204
|
"useTemplate": "error",
|
|
205
|
+
"useThrowNewError": "error",
|
|
206
|
+
"useThrowOnlyError": "error",
|
|
192
207
|
"useWhile": "error"
|
|
193
208
|
},
|
|
194
209
|
"suspicious": {
|
|
@@ -202,7 +217,7 @@
|
|
|
202
217
|
"noCompareNegZero": "error",
|
|
203
218
|
"noConfusingLabels": "error",
|
|
204
219
|
"noConfusingVoidType": "error",
|
|
205
|
-
"
|
|
220
|
+
"noConsole": "error",
|
|
206
221
|
"noConstEnum": "error",
|
|
207
222
|
"noControlCharactersInRegex": "error",
|
|
208
223
|
"noDebugger": "error",
|
|
@@ -215,6 +230,7 @@
|
|
|
215
230
|
"noDuplicateTestHooks": "error",
|
|
216
231
|
"noEmptyBlockStatements": "error",
|
|
217
232
|
"noEmptyInterface": "off",
|
|
233
|
+
"noEvolvingTypes": "error",
|
|
218
234
|
"noExplicitAny": "error",
|
|
219
235
|
"noExportsInTest": "error",
|
|
220
236
|
"noExtraNonNullAssertion": "error",
|
|
@@ -229,8 +245,10 @@
|
|
|
229
245
|
"noLabelVar": "error",
|
|
230
246
|
"noMisleadingCharacterClass": "error",
|
|
231
247
|
"noMisleadingInstantiator": "error",
|
|
248
|
+
"noMisplacedAssertion": "error",
|
|
232
249
|
"noMisrefactoredShorthandAssign": "error",
|
|
233
250
|
"noPrototypeBuiltins": "error",
|
|
251
|
+
"noReactSpecificProps": "off",
|
|
234
252
|
"noRedeclare": "error",
|
|
235
253
|
"noRedundantUseStrict": "error",
|
|
236
254
|
"noSelfCompare": "error",
|
|
@@ -243,41 +261,41 @@
|
|
|
243
261
|
"noUnsafeNegation": "error",
|
|
244
262
|
"useAwait": "off",
|
|
245
263
|
"useDefaultSwitchClauseLast": "error",
|
|
264
|
+
"useErrorMessage": "error",
|
|
246
265
|
"useGetterReturn": "error",
|
|
247
266
|
"useIsArray": "error",
|
|
248
267
|
"useNamespaceKeyword": "error",
|
|
268
|
+
"useNumberToFixedDigitsArgument": "error",
|
|
249
269
|
"useValidTypeof": "error"
|
|
250
270
|
},
|
|
251
271
|
"nursery": {
|
|
252
|
-
"
|
|
253
|
-
"noDoneCallback": "error",
|
|
272
|
+
"noCommonJs": "error",
|
|
254
273
|
"noDuplicateElseIf": "error",
|
|
255
|
-
"
|
|
256
|
-
"
|
|
257
|
-
"
|
|
258
|
-
"
|
|
259
|
-
"
|
|
274
|
+
"noDynamicNamespaceImportAccess": "error",
|
|
275
|
+
"noEnum": "error",
|
|
276
|
+
"noExportedImports": "error",
|
|
277
|
+
"noIrregularWhitespace": "error",
|
|
278
|
+
"noProcessEnv": "error",
|
|
260
279
|
"noRestrictedImports": "off",
|
|
261
|
-
"
|
|
262
|
-
"
|
|
263
|
-
"
|
|
264
|
-
"
|
|
265
|
-
"
|
|
280
|
+
"noRestrictedTypes": "off",
|
|
281
|
+
"noSecrets": "off",
|
|
282
|
+
"noStaticElementInteractions": "error",
|
|
283
|
+
"noSubstr": "error",
|
|
284
|
+
"noUselessEscapeInRegex": "error",
|
|
266
285
|
"useAdjacentOverloadSignatures": "error",
|
|
267
|
-
"
|
|
268
|
-
"
|
|
269
|
-
"
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
286
|
+
"useAriaPropsSupportedByRole": "error",
|
|
287
|
+
"useConsistentCurlyBraces": "off",
|
|
288
|
+
"useConsistentMemberAccessibility": {
|
|
289
|
+
"level": "error",
|
|
290
|
+
"options": {
|
|
291
|
+
"accessibility": "explicit"
|
|
292
|
+
}
|
|
293
|
+
},
|
|
274
294
|
"useImportRestrictions": "error",
|
|
275
|
-
"useNumberToFixedDigitsArgument": "error",
|
|
276
|
-
"useSemanticElements": "error",
|
|
277
295
|
"useSortedClasses": "off",
|
|
278
|
-
"
|
|
279
|
-
"
|
|
280
|
-
"
|
|
296
|
+
"useStrictMode": "error",
|
|
297
|
+
"useTrimStartEnd": "error",
|
|
298
|
+
"useValidAutocomplete": "error"
|
|
281
299
|
}
|
|
282
300
|
}
|
|
283
301
|
}
|
package/node.cjs
CHANGED
|
@@ -411,6 +411,7 @@ const rules = {
|
|
|
411
411
|
"react/forbid-elements": "off",
|
|
412
412
|
"react/forbid-foreign-prop-types": "off",
|
|
413
413
|
"react/forbid-prop-types": "off",
|
|
414
|
+
"react/forward-ref-uses-ref": "error",
|
|
414
415
|
"react/function-component-definition": [
|
|
415
416
|
"error",
|
|
416
417
|
{
|
|
@@ -972,7 +973,7 @@ const overrides = [
|
|
|
972
973
|
"no-useless-constructor": "off",
|
|
973
974
|
"@typescript-eslint/no-useless-constructor": "error",
|
|
974
975
|
"@typescript-eslint/no-useless-empty-export": "error",
|
|
975
|
-
"@typescript-eslint/no-var-requires": "
|
|
976
|
+
"@typescript-eslint/no-var-requires": "off",
|
|
976
977
|
"@typescript-eslint/no-wrapper-object-types": "error",
|
|
977
978
|
"@typescript-eslint/non-nullable-type-assertion-style": "off",
|
|
978
979
|
"no-throw-literal": "off",
|
package/nodeWithBiome.cjs
CHANGED
|
@@ -64,15 +64,7 @@ const rules = {
|
|
|
64
64
|
"no-import-assign": "off",
|
|
65
65
|
"no-inner-declarations": "off",
|
|
66
66
|
"no-invalid-regexp": "error",
|
|
67
|
-
"no-irregular-whitespace":
|
|
68
|
-
"error",
|
|
69
|
-
{
|
|
70
|
-
skipComments: false,
|
|
71
|
-
skipRegExps: false,
|
|
72
|
-
skipStrings: false,
|
|
73
|
-
skipTemplates: false,
|
|
74
|
-
},
|
|
75
|
-
],
|
|
67
|
+
"no-irregular-whitespace": "off",
|
|
76
68
|
"no-loss-of-precision": "off",
|
|
77
69
|
"no-misleading-character-class": "off",
|
|
78
70
|
"no-new-native-nonconstructor": "off",
|
|
@@ -236,7 +228,7 @@ const rules = {
|
|
|
236
228
|
],
|
|
237
229
|
"no-useless-concat": "off",
|
|
238
230
|
"no-useless-constructor": "off",
|
|
239
|
-
"no-useless-escape": "
|
|
231
|
+
"no-useless-escape": "off",
|
|
240
232
|
"no-useless-rename": "off",
|
|
241
233
|
"no-useless-return": "error",
|
|
242
234
|
"no-var": "off",
|
|
@@ -369,6 +361,7 @@ const rules = {
|
|
|
369
361
|
"react/forbid-elements": "off",
|
|
370
362
|
"react/forbid-foreign-prop-types": "off",
|
|
371
363
|
"react/forbid-prop-types": "off",
|
|
364
|
+
"react/forward-ref-uses-ref": "error",
|
|
372
365
|
"react/function-component-definition": [
|
|
373
366
|
"error",
|
|
374
367
|
{
|
|
@@ -619,9 +612,9 @@ const rules = {
|
|
|
619
612
|
"unicorn/prefer-spread": "error",
|
|
620
613
|
"unicorn/prefer-string-raw": "error",
|
|
621
614
|
"unicorn/prefer-string-replace-all": "error",
|
|
622
|
-
"unicorn/prefer-string-slice": "
|
|
615
|
+
"unicorn/prefer-string-slice": "off",
|
|
623
616
|
"unicorn/prefer-string-starts-ends-with": "error",
|
|
624
|
-
"unicorn/prefer-string-trim-start-end": "
|
|
617
|
+
"unicorn/prefer-string-trim-start-end": "off",
|
|
625
618
|
"unicorn/prefer-structured-clone": "error",
|
|
626
619
|
"unicorn/prefer-switch": "error",
|
|
627
620
|
|
|
@@ -750,7 +743,7 @@ const overrides = [
|
|
|
750
743
|
allowConciseArrowFunctionExpressionsStartingWithVoid: false,
|
|
751
744
|
},
|
|
752
745
|
],
|
|
753
|
-
"@typescript-eslint/explicit-member-accessibility": "
|
|
746
|
+
"@typescript-eslint/explicit-member-accessibility": "off",
|
|
754
747
|
"@typescript-eslint/explicit-module-boundary-types": "off",
|
|
755
748
|
"init-declarations": "off",
|
|
756
749
|
"@typescript-eslint/init-declarations": "off",
|
|
@@ -806,7 +799,7 @@ const overrides = [
|
|
|
806
799
|
"no-redeclare": "off",
|
|
807
800
|
"@typescript-eslint/no-redeclare": "off",
|
|
808
801
|
"@typescript-eslint/no-redundant-type-constituents": "error",
|
|
809
|
-
"@typescript-eslint/no-require-imports": "
|
|
802
|
+
"@typescript-eslint/no-require-imports": "off",
|
|
810
803
|
"no-restricted-imports": "off",
|
|
811
804
|
"@typescript-eslint/no-restricted-imports": "off",
|
|
812
805
|
"@typescript-eslint/no-restricted-types": "off",
|
|
@@ -842,7 +835,7 @@ const overrides = [
|
|
|
842
835
|
"no-useless-constructor": "off",
|
|
843
836
|
"@typescript-eslint/no-useless-constructor": "off",
|
|
844
837
|
"@typescript-eslint/no-useless-empty-export": "off",
|
|
845
|
-
"@typescript-eslint/no-var-requires": "
|
|
838
|
+
"@typescript-eslint/no-var-requires": "off",
|
|
846
839
|
"@typescript-eslint/no-wrapper-object-types": "off",
|
|
847
840
|
"@typescript-eslint/non-nullable-type-assertion-style": "off",
|
|
848
841
|
"no-throw-literal": "off",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-heck",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.2.1",
|
|
4
4
|
"description": "Contains an ESLint configuration for ES2015+, TypeScript, and React.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -29,29 +29,29 @@
|
|
|
29
29
|
"author": "atheck",
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@stylistic/eslint-plugin": "2.
|
|
33
|
-
"@typescript-eslint/eslint-plugin": "8.
|
|
34
|
-
"@typescript-eslint/parser": "8.
|
|
32
|
+
"@stylistic/eslint-plugin": "2.8.0",
|
|
33
|
+
"@typescript-eslint/eslint-plugin": "8.6.0",
|
|
34
|
+
"@typescript-eslint/parser": "8.6.0",
|
|
35
35
|
"eslint": "8.57.0",
|
|
36
36
|
"eslint-import-resolver-typescript": "3.6.3",
|
|
37
|
-
"eslint-plugin-import": "2.
|
|
38
|
-
"eslint-plugin-jest": "28.8.
|
|
39
|
-
"eslint-plugin-react": "7.
|
|
37
|
+
"eslint-plugin-import": "2.30.0",
|
|
38
|
+
"eslint-plugin-jest": "28.8.3",
|
|
39
|
+
"eslint-plugin-react": "7.36.1",
|
|
40
40
|
"eslint-plugin-react-hooks": "4.6.2",
|
|
41
41
|
"eslint-plugin-react-native": "4.1.0",
|
|
42
42
|
"eslint-plugin-testing-library": "6.3.0",
|
|
43
43
|
"eslint-plugin-unicorn": "55.0.0",
|
|
44
|
-
"typescript": "5.
|
|
44
|
+
"typescript": "5.6.2"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
|
-
"@biomejs/biome": "1.
|
|
47
|
+
"@biomejs/biome": "1.9.1",
|
|
48
48
|
"@testing-library/dom": "10.4.0",
|
|
49
49
|
"@testing-library/react": "16.0.1",
|
|
50
|
-
"@types/jest": "29.5.
|
|
51
|
-
"@types/react": "18.3.
|
|
50
|
+
"@types/jest": "29.5.13",
|
|
51
|
+
"@types/react": "18.3.7",
|
|
52
52
|
"jest": "29.7.0",
|
|
53
53
|
"react": "18.3.1",
|
|
54
|
-
"semantic-release": "24.1.
|
|
54
|
+
"semantic-release": "24.1.1"
|
|
55
55
|
},
|
|
56
56
|
"repository": {
|
|
57
57
|
"type": "git",
|