eslint-config-heck 5.0.0 → 5.1.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/biomeCss.json +40 -0
- package/biomeJsTs.json +319 -0
- package/biomeJson.json +11 -0
- package/biomeLinting.json +6 -314
- package/package.json +4 -4
- package/readme.md +9 -1
package/biomeCss.json
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
|
|
3
|
+
"linter": {
|
|
4
|
+
"enabled": true,
|
|
5
|
+
"rules": {
|
|
6
|
+
"a11y": {
|
|
7
|
+
"useGenericFontNames": "error"
|
|
8
|
+
},
|
|
9
|
+
"correctness": {
|
|
10
|
+
"noInvalidDirectionInLinearGradient": "error",
|
|
11
|
+
"noInvalidGridAreas": "error",
|
|
12
|
+
"noInvalidPositionAtImportRule": "error",
|
|
13
|
+
"noUnknownFunction": "error",
|
|
14
|
+
"noUnknownMediaFeatureName": "error",
|
|
15
|
+
"noUnknownProperty": "error",
|
|
16
|
+
"noUnknownUnit": "error",
|
|
17
|
+
"noUnmatchableAnbSelector": "error"
|
|
18
|
+
},
|
|
19
|
+
"suspicious": {
|
|
20
|
+
"noDuplicateAtImportRules": "error",
|
|
21
|
+
"noDuplicateFontNames": "error",
|
|
22
|
+
"noDuplicateSelectorsKeyframeBlock": "error",
|
|
23
|
+
"noEmptyBlock": "error",
|
|
24
|
+
"noImportantInKeyframe": "error",
|
|
25
|
+
"noShorthandPropertyOverrides": "error"
|
|
26
|
+
},
|
|
27
|
+
"nursery": {
|
|
28
|
+
"noDescendingSpecificity": "error",
|
|
29
|
+
"noDuplicateCustomProperties": "error",
|
|
30
|
+
"noDuplicateProperties": "error",
|
|
31
|
+
"noIrregularWhitespace": "error",
|
|
32
|
+
"noMissingVarFunction": "error",
|
|
33
|
+
"noUnknownPseudoClass": "error",
|
|
34
|
+
"noUnknownPseudoElement": "error",
|
|
35
|
+
"noUnknownTypeSelector": "error",
|
|
36
|
+
"noValueAtRule": "error"
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
package/biomeJsTs.json
ADDED
|
@@ -0,0 +1,319 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
|
|
3
|
+
"linter": {
|
|
4
|
+
"enabled": true,
|
|
5
|
+
"rules": {
|
|
6
|
+
"a11y": {
|
|
7
|
+
"noAccessKey": "error",
|
|
8
|
+
"noAriaHiddenOnFocusable": "error",
|
|
9
|
+
"noAriaUnsupportedElements": "error",
|
|
10
|
+
"noAutofocus": "error",
|
|
11
|
+
"noBlankTarget": "error",
|
|
12
|
+
"noDistractingElements": "error",
|
|
13
|
+
"noHeaderScope": "error",
|
|
14
|
+
"noInteractiveElementToNoninteractiveRole": "error",
|
|
15
|
+
"noLabelWithoutControl": "error",
|
|
16
|
+
"noNoninteractiveElementToInteractiveRole": "error",
|
|
17
|
+
"noNoninteractiveTabindex": "error",
|
|
18
|
+
"noPositiveTabindex": "error",
|
|
19
|
+
"noRedundantAlt": "error",
|
|
20
|
+
"noRedundantRoles": "error",
|
|
21
|
+
"noSvgWithoutTitle": "error",
|
|
22
|
+
"useAltText": "error",
|
|
23
|
+
"useAnchorContent": "error",
|
|
24
|
+
"useAriaActivedescendantWithTabindex": "error",
|
|
25
|
+
"useAriaPropsForRole": "error",
|
|
26
|
+
"useButtonType": "error",
|
|
27
|
+
"useFocusableInteractive": "error",
|
|
28
|
+
"useHeadingContent": "error",
|
|
29
|
+
"useHtmlLang": "error",
|
|
30
|
+
"useIframeTitle": "error",
|
|
31
|
+
"useKeyWithClickEvents": "error",
|
|
32
|
+
"useKeyWithMouseEvents": "error",
|
|
33
|
+
"useMediaCaption": "error",
|
|
34
|
+
"useSemanticElements": "error",
|
|
35
|
+
"useValidAnchor": "error",
|
|
36
|
+
"useValidAriaProps": "error",
|
|
37
|
+
"useValidAriaRole": "error",
|
|
38
|
+
"useValidAriaValues": "error",
|
|
39
|
+
"useValidLang": "error"
|
|
40
|
+
},
|
|
41
|
+
"complexity": {
|
|
42
|
+
"noBannedTypes": "error",
|
|
43
|
+
"noEmptyTypeParameters": "error",
|
|
44
|
+
"noExcessiveCognitiveComplexity": "warn",
|
|
45
|
+
"noExcessiveNestedTestSuites": "error",
|
|
46
|
+
"noExtraBooleanCast": "error",
|
|
47
|
+
"noForEach": "error",
|
|
48
|
+
"noMultipleSpacesInRegularExpressionLiterals": "error",
|
|
49
|
+
"noStaticOnlyClass": "error",
|
|
50
|
+
"noThisInStatic": "error",
|
|
51
|
+
"noUselessCatch": "error",
|
|
52
|
+
"noUselessConstructor": "error",
|
|
53
|
+
"noUselessEmptyExport": "error",
|
|
54
|
+
"noUselessFragments": "error",
|
|
55
|
+
"noUselessLabel": "error",
|
|
56
|
+
"noUselessLoneBlockStatements": "error",
|
|
57
|
+
"noUselessRename": "error",
|
|
58
|
+
"noUselessStringConcat": "error",
|
|
59
|
+
"noUselessSwitchCase": "error",
|
|
60
|
+
"noUselessTernary": "error",
|
|
61
|
+
"noUselessThisAlias": "error",
|
|
62
|
+
"noUselessTypeConstraint": "error",
|
|
63
|
+
"noUselessUndefinedInitialization": "error",
|
|
64
|
+
"noVoid": "error",
|
|
65
|
+
"noWith": "error",
|
|
66
|
+
"useArrowFunction": "error",
|
|
67
|
+
"useDateNow": "error",
|
|
68
|
+
"useFlatMap": "error",
|
|
69
|
+
"useLiteralKeys": "error",
|
|
70
|
+
"useOptionalChain": "error",
|
|
71
|
+
"useRegexLiterals": "error",
|
|
72
|
+
"useSimpleNumberKeys": "error",
|
|
73
|
+
"useSimplifiedLogicExpression": "off"
|
|
74
|
+
},
|
|
75
|
+
"correctness": {
|
|
76
|
+
"noChildrenProp": "error",
|
|
77
|
+
"noConstantCondition": "error",
|
|
78
|
+
"noConstantMathMinMaxClamp": "error",
|
|
79
|
+
"noConstAssign": "error",
|
|
80
|
+
"noConstructorReturn": "error",
|
|
81
|
+
"noEmptyCharacterClassInRegex": "error",
|
|
82
|
+
"noEmptyPattern": "error",
|
|
83
|
+
"noFlatMapIdentity": "error",
|
|
84
|
+
"noGlobalObjectCalls": "error",
|
|
85
|
+
"noInnerDeclarations": "error",
|
|
86
|
+
"noInvalidBuiltinInstantiation": "error",
|
|
87
|
+
"noInvalidConstructorSuper": "error",
|
|
88
|
+
"noInvalidUseBeforeDeclaration": "off",
|
|
89
|
+
"noNodejsModules": "off",
|
|
90
|
+
"noNonoctalDecimalEscape": "error",
|
|
91
|
+
"noPrecisionLoss": "error",
|
|
92
|
+
"noRenderReturnValue": "error",
|
|
93
|
+
"noSelfAssign": "error",
|
|
94
|
+
"noSetterReturn": "error",
|
|
95
|
+
"noStringCaseMismatch": "error",
|
|
96
|
+
"noSwitchDeclarations": "error",
|
|
97
|
+
"noUndeclaredDependencies": "off",
|
|
98
|
+
"noUndeclaredVariables": "off",
|
|
99
|
+
"noUnnecessaryContinue": "error",
|
|
100
|
+
"noUnreachable": "error",
|
|
101
|
+
"noUnreachableSuper": "error",
|
|
102
|
+
"noUnsafeFinally": "error",
|
|
103
|
+
"noUnsafeOptionalChaining": "error",
|
|
104
|
+
"noUnusedFunctionParameters": "error",
|
|
105
|
+
"noUnusedImports": "error",
|
|
106
|
+
"noUnusedLabels": "error",
|
|
107
|
+
"noUnusedPrivateClassMembers": "error",
|
|
108
|
+
"noUnusedVariables": "error",
|
|
109
|
+
"noVoidElementsWithChildren": "error",
|
|
110
|
+
"noVoidTypeReturn": "error",
|
|
111
|
+
"useArrayLiterals": "error",
|
|
112
|
+
"useExhaustiveDependencies": "error",
|
|
113
|
+
"useHookAtTopLevel": "error",
|
|
114
|
+
"useImportExtensions": "off",
|
|
115
|
+
"useIsNan": "error",
|
|
116
|
+
"useJsxKeyInIterable": "error",
|
|
117
|
+
"useValidForDirection": "error",
|
|
118
|
+
"useYield": "error"
|
|
119
|
+
},
|
|
120
|
+
"performance": {
|
|
121
|
+
"noAccumulatingSpread": "error",
|
|
122
|
+
"noBarrelFile": "error",
|
|
123
|
+
"noDelete": "error",
|
|
124
|
+
"noReExportAll": "error",
|
|
125
|
+
"useTopLevelRegex": "error"
|
|
126
|
+
},
|
|
127
|
+
"security": {
|
|
128
|
+
"noDangerouslySetInnerHtml": "error",
|
|
129
|
+
"noDangerouslySetInnerHtmlWithChildren": "error",
|
|
130
|
+
"noGlobalEval": "error"
|
|
131
|
+
},
|
|
132
|
+
"style": {
|
|
133
|
+
"noArguments": "error",
|
|
134
|
+
"noCommaOperator": "error",
|
|
135
|
+
"noDefaultExport": "error",
|
|
136
|
+
"noDoneCallback": "error",
|
|
137
|
+
"noImplicitBoolean": "off",
|
|
138
|
+
"noInferrableTypes": "error",
|
|
139
|
+
"noNamespace": "error",
|
|
140
|
+
"noNamespaceImport": "error",
|
|
141
|
+
"noNegationElse": "error",
|
|
142
|
+
"noNonNullAssertion": "error",
|
|
143
|
+
"noParameterAssign": "error",
|
|
144
|
+
"noParameterProperties": "off",
|
|
145
|
+
"noRestrictedGlobals": "off",
|
|
146
|
+
"noShoutyConstants": "error",
|
|
147
|
+
"noUnusedTemplateLiteral": "error",
|
|
148
|
+
"noUselessElse": "error",
|
|
149
|
+
"noVar": "error",
|
|
150
|
+
"noYodaExpression": "error",
|
|
151
|
+
"useAsConstAssertion": "error",
|
|
152
|
+
"useBlockStatements": "error",
|
|
153
|
+
"useCollapsedElseIf": "error",
|
|
154
|
+
"useConsistentArrayType": "error",
|
|
155
|
+
"useConsistentBuiltinInstantiation": "error",
|
|
156
|
+
"useConst": "error",
|
|
157
|
+
"useDefaultParameterLast": "error",
|
|
158
|
+
"useDefaultSwitchClause": "off",
|
|
159
|
+
"useEnumInitializers": "error",
|
|
160
|
+
"useExplicitLengthCheck": "error",
|
|
161
|
+
"useExponentiationOperator": "error",
|
|
162
|
+
"useExportType": "error",
|
|
163
|
+
"useFilenamingConvention": {
|
|
164
|
+
"level": "error",
|
|
165
|
+
"options": {
|
|
166
|
+
"strictCase": true,
|
|
167
|
+
"filenameCases": [
|
|
168
|
+
"camelCase",
|
|
169
|
+
"PascalCase"
|
|
170
|
+
]
|
|
171
|
+
}
|
|
172
|
+
},
|
|
173
|
+
"useForOf": "error",
|
|
174
|
+
"useFragmentSyntax": "off",
|
|
175
|
+
"useImportType": "error",
|
|
176
|
+
"useLiteralEnumMembers": "error",
|
|
177
|
+
"useNamingConvention": {
|
|
178
|
+
"level": "error",
|
|
179
|
+
"options": {
|
|
180
|
+
"strictCase": true,
|
|
181
|
+
"requireAscii": true,
|
|
182
|
+
"conventions": [
|
|
183
|
+
{
|
|
184
|
+
"selector": {
|
|
185
|
+
"kind": "typeParameter"
|
|
186
|
+
},
|
|
187
|
+
"match": "T(.+)",
|
|
188
|
+
"formats": [
|
|
189
|
+
"PascalCase"
|
|
190
|
+
]
|
|
191
|
+
}
|
|
192
|
+
]
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
"useNodeAssertStrict": "error",
|
|
196
|
+
"useNodejsImportProtocol": "error",
|
|
197
|
+
"useNumberNamespace": "error",
|
|
198
|
+
"useNumericLiterals": "error",
|
|
199
|
+
"useSelfClosingElements": "error",
|
|
200
|
+
"useShorthandArrayType": "error",
|
|
201
|
+
"useShorthandAssign": "error",
|
|
202
|
+
"useShorthandFunctionType": "error",
|
|
203
|
+
"useSingleVarDeclarator": "error",
|
|
204
|
+
"useTemplate": "error",
|
|
205
|
+
"useThrowNewError": "error",
|
|
206
|
+
"useThrowOnlyError": "error",
|
|
207
|
+
"useWhile": "error"
|
|
208
|
+
},
|
|
209
|
+
"suspicious": {
|
|
210
|
+
"noApproximativeNumericConstant": "error",
|
|
211
|
+
"noArrayIndexKey": "error",
|
|
212
|
+
"noAssignInExpressions": "error",
|
|
213
|
+
"noAsyncPromiseExecutor": "error",
|
|
214
|
+
"noCatchAssign": "error",
|
|
215
|
+
"noClassAssign": "error",
|
|
216
|
+
"noCommentText": "error",
|
|
217
|
+
"noCompareNegZero": "error",
|
|
218
|
+
"noConfusingLabels": "error",
|
|
219
|
+
"noConfusingVoidType": "error",
|
|
220
|
+
"noConsole": "error",
|
|
221
|
+
"noConstEnum": "error",
|
|
222
|
+
"noControlCharactersInRegex": "error",
|
|
223
|
+
"noDebugger": "error",
|
|
224
|
+
"noDoubleEquals": "error",
|
|
225
|
+
"noDuplicateCase": "error",
|
|
226
|
+
"noDuplicateClassMembers": "error",
|
|
227
|
+
"noDuplicateJsxProps": "error",
|
|
228
|
+
"noDuplicateObjectKeys": "error",
|
|
229
|
+
"noDuplicateParameters": "error",
|
|
230
|
+
"noDuplicateTestHooks": "error",
|
|
231
|
+
"noEmptyBlockStatements": "error",
|
|
232
|
+
"noEmptyInterface": "off",
|
|
233
|
+
"noEvolvingTypes": "error",
|
|
234
|
+
"noExplicitAny": "error",
|
|
235
|
+
"noExportsInTest": "error",
|
|
236
|
+
"noExtraNonNullAssertion": "error",
|
|
237
|
+
"noFallthroughSwitchClause": "error",
|
|
238
|
+
"noFocusedTests": "warn",
|
|
239
|
+
"noFunctionAssign": "error",
|
|
240
|
+
"noGlobalAssign": "error",
|
|
241
|
+
"noGlobalIsFinite": "error",
|
|
242
|
+
"noGlobalIsNan": "error",
|
|
243
|
+
"noImplicitAnyLet": "error",
|
|
244
|
+
"noImportAssign": "error",
|
|
245
|
+
"noLabelVar": "error",
|
|
246
|
+
"noMisleadingCharacterClass": "error",
|
|
247
|
+
"noMisleadingInstantiator": "error",
|
|
248
|
+
"noMisplacedAssertion": "error",
|
|
249
|
+
"noMisrefactoredShorthandAssign": "error",
|
|
250
|
+
"noPrototypeBuiltins": "error",
|
|
251
|
+
"noReactSpecificProps": "off",
|
|
252
|
+
"noRedeclare": "error",
|
|
253
|
+
"noRedundantUseStrict": "error",
|
|
254
|
+
"noSelfCompare": "error",
|
|
255
|
+
"noShadowRestrictedNames": "error",
|
|
256
|
+
"noSkippedTests": "warn",
|
|
257
|
+
"noSparseArray": "error",
|
|
258
|
+
"noSuspiciousSemicolonInJsx": "error",
|
|
259
|
+
"noThenProperty": "error",
|
|
260
|
+
"noUnsafeDeclarationMerging": "error",
|
|
261
|
+
"noUnsafeNegation": "error",
|
|
262
|
+
"useAwait": "off",
|
|
263
|
+
"useDefaultSwitchClauseLast": "error",
|
|
264
|
+
"useErrorMessage": "error",
|
|
265
|
+
"useGetterReturn": "error",
|
|
266
|
+
"useIsArray": "error",
|
|
267
|
+
"useNamespaceKeyword": "error",
|
|
268
|
+
"useNumberToFixedDigitsArgument": "error",
|
|
269
|
+
"useValidTypeof": "error"
|
|
270
|
+
},
|
|
271
|
+
"nursery": {
|
|
272
|
+
"noCommonJs": "error",
|
|
273
|
+
"noDocumentCookie": "error",
|
|
274
|
+
"noDocumentImportInPage": "off",
|
|
275
|
+
"noDuplicatedFields": "off",
|
|
276
|
+
"noDuplicateElseIf": "error",
|
|
277
|
+
"noDynamicNamespaceImportAccess": "error",
|
|
278
|
+
"noEnum": "error",
|
|
279
|
+
"noExportedImports": "error",
|
|
280
|
+
"noHeadElement": "off",
|
|
281
|
+
"noHeadImportInDocument": "off",
|
|
282
|
+
"noImgElement": "off",
|
|
283
|
+
"noIrregularWhitespace": "error",
|
|
284
|
+
"noNestedTernary": "error",
|
|
285
|
+
"noOctalEscape": "error",
|
|
286
|
+
"noProcessEnv": "error",
|
|
287
|
+
"noRestrictedImports": "off",
|
|
288
|
+
"noRestrictedTypes": "off",
|
|
289
|
+
"noSecrets": "off",
|
|
290
|
+
"noStaticElementInteractions": "error",
|
|
291
|
+
"noSubstr": "error",
|
|
292
|
+
"noTemplateCurlyInString": "error",
|
|
293
|
+
"noUselessEscapeInRegex": "error",
|
|
294
|
+
"noUselessStringRaw": "error",
|
|
295
|
+
"useAdjacentOverloadSignatures": "error",
|
|
296
|
+
"useAriaPropsSupportedByRole": "error",
|
|
297
|
+
"useAtIndex": "error",
|
|
298
|
+
"useCollapsedIf": "error",
|
|
299
|
+
"useComponentExportOnlyModules": "off",
|
|
300
|
+
"useConsistentCurlyBraces": "off",
|
|
301
|
+
"useConsistentMemberAccessibility": {
|
|
302
|
+
"level": "error",
|
|
303
|
+
"options": {
|
|
304
|
+
"accessibility": "explicit"
|
|
305
|
+
}
|
|
306
|
+
},
|
|
307
|
+
"useDeprecatedReason": "off",
|
|
308
|
+
"useExplicitType": "off",
|
|
309
|
+
"useGoogleFontDisplay": "error",
|
|
310
|
+
"useGuardForIn": "error",
|
|
311
|
+
"useImportRestrictions": "error",
|
|
312
|
+
"useSortedClasses": "off",
|
|
313
|
+
"useStrictMode": "error",
|
|
314
|
+
"useTrimStartEnd": "error",
|
|
315
|
+
"useValidAutocomplete": "error"
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
}
|
|
319
|
+
}
|
package/biomeJson.json
ADDED
package/biomeLinting.json
CHANGED
|
@@ -1,319 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
|
|
3
|
+
"extends": [
|
|
4
|
+
"./biomeJsTs.json",
|
|
5
|
+
"./biomeCss.json",
|
|
6
|
+
"./biomeJson.json"
|
|
7
|
+
],
|
|
3
8
|
"linter": {
|
|
4
|
-
"enabled": true
|
|
5
|
-
"rules": {
|
|
6
|
-
"a11y": {
|
|
7
|
-
"noAccessKey": "error",
|
|
8
|
-
"noAriaHiddenOnFocusable": "error",
|
|
9
|
-
"noAriaUnsupportedElements": "error",
|
|
10
|
-
"noAutofocus": "error",
|
|
11
|
-
"noBlankTarget": "error",
|
|
12
|
-
"noDistractingElements": "error",
|
|
13
|
-
"noHeaderScope": "error",
|
|
14
|
-
"noInteractiveElementToNoninteractiveRole": "error",
|
|
15
|
-
"noLabelWithoutControl": "error",
|
|
16
|
-
"noNoninteractiveElementToInteractiveRole": "error",
|
|
17
|
-
"noNoninteractiveTabindex": "error",
|
|
18
|
-
"noPositiveTabindex": "error",
|
|
19
|
-
"noRedundantAlt": "error",
|
|
20
|
-
"noRedundantRoles": "error",
|
|
21
|
-
"noSvgWithoutTitle": "error",
|
|
22
|
-
"useAltText": "error",
|
|
23
|
-
"useAnchorContent": "error",
|
|
24
|
-
"useAriaActivedescendantWithTabindex": "error",
|
|
25
|
-
"useAriaPropsForRole": "error",
|
|
26
|
-
"useButtonType": "error",
|
|
27
|
-
"useFocusableInteractive": "error",
|
|
28
|
-
"useHeadingContent": "error",
|
|
29
|
-
"useHtmlLang": "error",
|
|
30
|
-
"useIframeTitle": "error",
|
|
31
|
-
"useKeyWithClickEvents": "error",
|
|
32
|
-
"useKeyWithMouseEvents": "error",
|
|
33
|
-
"useMediaCaption": "error",
|
|
34
|
-
"useSemanticElements": "error",
|
|
35
|
-
"useValidAnchor": "error",
|
|
36
|
-
"useValidAriaProps": "error",
|
|
37
|
-
"useValidAriaRole": "error",
|
|
38
|
-
"useValidAriaValues": "error",
|
|
39
|
-
"useValidLang": "error"
|
|
40
|
-
},
|
|
41
|
-
"complexity": {
|
|
42
|
-
"noBannedTypes": "error",
|
|
43
|
-
"noEmptyTypeParameters": "error",
|
|
44
|
-
"noExcessiveCognitiveComplexity": "warn",
|
|
45
|
-
"noExcessiveNestedTestSuites": "error",
|
|
46
|
-
"noExtraBooleanCast": "error",
|
|
47
|
-
"noForEach": "error",
|
|
48
|
-
"noMultipleSpacesInRegularExpressionLiterals": "error",
|
|
49
|
-
"noStaticOnlyClass": "error",
|
|
50
|
-
"noThisInStatic": "error",
|
|
51
|
-
"noUselessCatch": "error",
|
|
52
|
-
"noUselessConstructor": "error",
|
|
53
|
-
"noUselessEmptyExport": "error",
|
|
54
|
-
"noUselessFragments": "error",
|
|
55
|
-
"noUselessLabel": "error",
|
|
56
|
-
"noUselessLoneBlockStatements": "error",
|
|
57
|
-
"noUselessRename": "error",
|
|
58
|
-
"noUselessStringConcat": "error",
|
|
59
|
-
"noUselessSwitchCase": "error",
|
|
60
|
-
"noUselessTernary": "error",
|
|
61
|
-
"noUselessThisAlias": "error",
|
|
62
|
-
"noUselessTypeConstraint": "error",
|
|
63
|
-
"noUselessUndefinedInitialization": "error",
|
|
64
|
-
"noVoid": "error",
|
|
65
|
-
"noWith": "error",
|
|
66
|
-
"useArrowFunction": "error",
|
|
67
|
-
"useDateNow": "error",
|
|
68
|
-
"useFlatMap": "error",
|
|
69
|
-
"useLiteralKeys": "error",
|
|
70
|
-
"useOptionalChain": "error",
|
|
71
|
-
"useRegexLiterals": "error",
|
|
72
|
-
"useSimpleNumberKeys": "error",
|
|
73
|
-
"useSimplifiedLogicExpression": "off"
|
|
74
|
-
},
|
|
75
|
-
"correctness": {
|
|
76
|
-
"noChildrenProp": "error",
|
|
77
|
-
"noConstantCondition": "error",
|
|
78
|
-
"noConstantMathMinMaxClamp": "error",
|
|
79
|
-
"noConstAssign": "error",
|
|
80
|
-
"noConstructorReturn": "error",
|
|
81
|
-
"noEmptyCharacterClassInRegex": "error",
|
|
82
|
-
"noEmptyPattern": "error",
|
|
83
|
-
"noFlatMapIdentity": "error",
|
|
84
|
-
"noGlobalObjectCalls": "error",
|
|
85
|
-
"noInnerDeclarations": "error",
|
|
86
|
-
"noInvalidBuiltinInstantiation": "error",
|
|
87
|
-
"noInvalidConstructorSuper": "error",
|
|
88
|
-
"noInvalidUseBeforeDeclaration": "off",
|
|
89
|
-
"noNodejsModules": "off",
|
|
90
|
-
"noNonoctalDecimalEscape": "error",
|
|
91
|
-
"noPrecisionLoss": "error",
|
|
92
|
-
"noRenderReturnValue": "error",
|
|
93
|
-
"noSelfAssign": "error",
|
|
94
|
-
"noSetterReturn": "error",
|
|
95
|
-
"noStringCaseMismatch": "error",
|
|
96
|
-
"noSwitchDeclarations": "error",
|
|
97
|
-
"noUndeclaredDependencies": "off",
|
|
98
|
-
"noUndeclaredVariables": "off",
|
|
99
|
-
"noUnnecessaryContinue": "error",
|
|
100
|
-
"noUnreachable": "error",
|
|
101
|
-
"noUnreachableSuper": "error",
|
|
102
|
-
"noUnsafeFinally": "error",
|
|
103
|
-
"noUnsafeOptionalChaining": "error",
|
|
104
|
-
"noUnusedFunctionParameters": "error",
|
|
105
|
-
"noUnusedImports": "error",
|
|
106
|
-
"noUnusedLabels": "error",
|
|
107
|
-
"noUnusedPrivateClassMembers": "error",
|
|
108
|
-
"noUnusedVariables": "error",
|
|
109
|
-
"noVoidElementsWithChildren": "error",
|
|
110
|
-
"noVoidTypeReturn": "error",
|
|
111
|
-
"useArrayLiterals": "error",
|
|
112
|
-
"useExhaustiveDependencies": "error",
|
|
113
|
-
"useHookAtTopLevel": "error",
|
|
114
|
-
"useImportExtensions": "off",
|
|
115
|
-
"useIsNan": "error",
|
|
116
|
-
"useJsxKeyInIterable": "error",
|
|
117
|
-
"useValidForDirection": "error",
|
|
118
|
-
"useYield": "error"
|
|
119
|
-
},
|
|
120
|
-
"performance": {
|
|
121
|
-
"noAccumulatingSpread": "error",
|
|
122
|
-
"noBarrelFile": "error",
|
|
123
|
-
"noDelete": "error",
|
|
124
|
-
"noReExportAll": "error",
|
|
125
|
-
"useTopLevelRegex": "error"
|
|
126
|
-
},
|
|
127
|
-
"security": {
|
|
128
|
-
"noDangerouslySetInnerHtml": "error",
|
|
129
|
-
"noDangerouslySetInnerHtmlWithChildren": "error",
|
|
130
|
-
"noGlobalEval": "error"
|
|
131
|
-
},
|
|
132
|
-
"style": {
|
|
133
|
-
"noArguments": "error",
|
|
134
|
-
"noCommaOperator": "error",
|
|
135
|
-
"noDefaultExport": "error",
|
|
136
|
-
"noDoneCallback": "error",
|
|
137
|
-
"noImplicitBoolean": "off",
|
|
138
|
-
"noInferrableTypes": "error",
|
|
139
|
-
"noNamespace": "error",
|
|
140
|
-
"noNamespaceImport": "error",
|
|
141
|
-
"noNegationElse": "error",
|
|
142
|
-
"noNonNullAssertion": "error",
|
|
143
|
-
"noParameterAssign": "error",
|
|
144
|
-
"noParameterProperties": "off",
|
|
145
|
-
"noRestrictedGlobals": "off",
|
|
146
|
-
"noShoutyConstants": "error",
|
|
147
|
-
"noUnusedTemplateLiteral": "error",
|
|
148
|
-
"noUselessElse": "error",
|
|
149
|
-
"noVar": "error",
|
|
150
|
-
"noYodaExpression": "error",
|
|
151
|
-
"useAsConstAssertion": "error",
|
|
152
|
-
"useBlockStatements": "error",
|
|
153
|
-
"useCollapsedElseIf": "error",
|
|
154
|
-
"useConsistentArrayType": "error",
|
|
155
|
-
"useConsistentBuiltinInstantiation": "error",
|
|
156
|
-
"useConst": "error",
|
|
157
|
-
"useDefaultParameterLast": "error",
|
|
158
|
-
"useDefaultSwitchClause": "off",
|
|
159
|
-
"useEnumInitializers": "error",
|
|
160
|
-
"useExplicitLengthCheck": "error",
|
|
161
|
-
"useExponentiationOperator": "error",
|
|
162
|
-
"useExportType": "error",
|
|
163
|
-
"useFilenamingConvention": {
|
|
164
|
-
"level": "error",
|
|
165
|
-
"options": {
|
|
166
|
-
"strictCase": true,
|
|
167
|
-
"filenameCases": [
|
|
168
|
-
"camelCase",
|
|
169
|
-
"PascalCase"
|
|
170
|
-
]
|
|
171
|
-
}
|
|
172
|
-
},
|
|
173
|
-
"useForOf": "error",
|
|
174
|
-
"useFragmentSyntax": "off",
|
|
175
|
-
"useImportType": "error",
|
|
176
|
-
"useLiteralEnumMembers": "error",
|
|
177
|
-
"useNamingConvention": {
|
|
178
|
-
"level": "error",
|
|
179
|
-
"options": {
|
|
180
|
-
"strictCase": true,
|
|
181
|
-
"requireAscii": true,
|
|
182
|
-
"conventions": [
|
|
183
|
-
{
|
|
184
|
-
"selector": {
|
|
185
|
-
"kind": "typeParameter"
|
|
186
|
-
},
|
|
187
|
-
"match": "T(.+)",
|
|
188
|
-
"formats": [
|
|
189
|
-
"PascalCase"
|
|
190
|
-
]
|
|
191
|
-
}
|
|
192
|
-
]
|
|
193
|
-
}
|
|
194
|
-
},
|
|
195
|
-
"useNodeAssertStrict": "error",
|
|
196
|
-
"useNodejsImportProtocol": "error",
|
|
197
|
-
"useNumberNamespace": "error",
|
|
198
|
-
"useNumericLiterals": "error",
|
|
199
|
-
"useSelfClosingElements": "error",
|
|
200
|
-
"useShorthandArrayType": "error",
|
|
201
|
-
"useShorthandAssign": "error",
|
|
202
|
-
"useShorthandFunctionType": "error",
|
|
203
|
-
"useSingleVarDeclarator": "error",
|
|
204
|
-
"useTemplate": "error",
|
|
205
|
-
"useThrowNewError": "error",
|
|
206
|
-
"useThrowOnlyError": "error",
|
|
207
|
-
"useWhile": "error"
|
|
208
|
-
},
|
|
209
|
-
"suspicious": {
|
|
210
|
-
"noApproximativeNumericConstant": "error",
|
|
211
|
-
"noArrayIndexKey": "error",
|
|
212
|
-
"noAssignInExpressions": "error",
|
|
213
|
-
"noAsyncPromiseExecutor": "error",
|
|
214
|
-
"noCatchAssign": "error",
|
|
215
|
-
"noClassAssign": "error",
|
|
216
|
-
"noCommentText": "error",
|
|
217
|
-
"noCompareNegZero": "error",
|
|
218
|
-
"noConfusingLabels": "error",
|
|
219
|
-
"noConfusingVoidType": "error",
|
|
220
|
-
"noConsole": "error",
|
|
221
|
-
"noConstEnum": "error",
|
|
222
|
-
"noControlCharactersInRegex": "error",
|
|
223
|
-
"noDebugger": "error",
|
|
224
|
-
"noDoubleEquals": "error",
|
|
225
|
-
"noDuplicateCase": "error",
|
|
226
|
-
"noDuplicateClassMembers": "error",
|
|
227
|
-
"noDuplicateJsxProps": "error",
|
|
228
|
-
"noDuplicateObjectKeys": "error",
|
|
229
|
-
"noDuplicateParameters": "error",
|
|
230
|
-
"noDuplicateTestHooks": "error",
|
|
231
|
-
"noEmptyBlockStatements": "error",
|
|
232
|
-
"noEmptyInterface": "off",
|
|
233
|
-
"noEvolvingTypes": "error",
|
|
234
|
-
"noExplicitAny": "error",
|
|
235
|
-
"noExportsInTest": "error",
|
|
236
|
-
"noExtraNonNullAssertion": "error",
|
|
237
|
-
"noFallthroughSwitchClause": "error",
|
|
238
|
-
"noFocusedTests": "warn",
|
|
239
|
-
"noFunctionAssign": "error",
|
|
240
|
-
"noGlobalAssign": "error",
|
|
241
|
-
"noGlobalIsFinite": "error",
|
|
242
|
-
"noGlobalIsNan": "error",
|
|
243
|
-
"noImplicitAnyLet": "error",
|
|
244
|
-
"noImportAssign": "error",
|
|
245
|
-
"noLabelVar": "error",
|
|
246
|
-
"noMisleadingCharacterClass": "error",
|
|
247
|
-
"noMisleadingInstantiator": "error",
|
|
248
|
-
"noMisplacedAssertion": "error",
|
|
249
|
-
"noMisrefactoredShorthandAssign": "error",
|
|
250
|
-
"noPrototypeBuiltins": "error",
|
|
251
|
-
"noReactSpecificProps": "off",
|
|
252
|
-
"noRedeclare": "error",
|
|
253
|
-
"noRedundantUseStrict": "error",
|
|
254
|
-
"noSelfCompare": "error",
|
|
255
|
-
"noShadowRestrictedNames": "error",
|
|
256
|
-
"noSkippedTests": "warn",
|
|
257
|
-
"noSparseArray": "error",
|
|
258
|
-
"noSuspiciousSemicolonInJsx": "error",
|
|
259
|
-
"noThenProperty": "error",
|
|
260
|
-
"noUnsafeDeclarationMerging": "error",
|
|
261
|
-
"noUnsafeNegation": "error",
|
|
262
|
-
"useAwait": "off",
|
|
263
|
-
"useDefaultSwitchClauseLast": "error",
|
|
264
|
-
"useErrorMessage": "error",
|
|
265
|
-
"useGetterReturn": "error",
|
|
266
|
-
"useIsArray": "error",
|
|
267
|
-
"useNamespaceKeyword": "error",
|
|
268
|
-
"useNumberToFixedDigitsArgument": "error",
|
|
269
|
-
"useValidTypeof": "error"
|
|
270
|
-
},
|
|
271
|
-
"nursery": {
|
|
272
|
-
"noCommonJs": "error",
|
|
273
|
-
"noDocumentCookie": "error",
|
|
274
|
-
"noDocumentImportInPage": "off",
|
|
275
|
-
"noDuplicatedFields": "off",
|
|
276
|
-
"noDuplicateElseIf": "error",
|
|
277
|
-
"noDynamicNamespaceImportAccess": "error",
|
|
278
|
-
"noEnum": "error",
|
|
279
|
-
"noExportedImports": "error",
|
|
280
|
-
"noHeadElement": "off",
|
|
281
|
-
"noHeadImportInDocument": "off",
|
|
282
|
-
"noImgElement": "off",
|
|
283
|
-
"noIrregularWhitespace": "error",
|
|
284
|
-
"noNestedTernary": "error",
|
|
285
|
-
"noOctalEscape": "error",
|
|
286
|
-
"noProcessEnv": "error",
|
|
287
|
-
"noRestrictedImports": "off",
|
|
288
|
-
"noRestrictedTypes": "off",
|
|
289
|
-
"noSecrets": "off",
|
|
290
|
-
"noStaticElementInteractions": "error",
|
|
291
|
-
"noSubstr": "error",
|
|
292
|
-
"noTemplateCurlyInString": "error",
|
|
293
|
-
"noUselessEscapeInRegex": "error",
|
|
294
|
-
"noUselessStringRaw": "error",
|
|
295
|
-
"useAdjacentOverloadSignatures": "error",
|
|
296
|
-
"useAriaPropsSupportedByRole": "error",
|
|
297
|
-
"useAtIndex": "error",
|
|
298
|
-
"useCollapsedIf": "error",
|
|
299
|
-
"useComponentExportOnlyModules": "off",
|
|
300
|
-
"useConsistentCurlyBraces": "off",
|
|
301
|
-
"useConsistentMemberAccessibility": {
|
|
302
|
-
"level": "error",
|
|
303
|
-
"options": {
|
|
304
|
-
"accessibility": "explicit"
|
|
305
|
-
}
|
|
306
|
-
},
|
|
307
|
-
"useDeprecatedReason": "off",
|
|
308
|
-
"useExplicitType": "off",
|
|
309
|
-
"useGoogleFontDisplay": "error",
|
|
310
|
-
"useGuardForIn": "error",
|
|
311
|
-
"useImportRestrictions": "error",
|
|
312
|
-
"useSortedClasses": "off",
|
|
313
|
-
"useStrictMode": "error",
|
|
314
|
-
"useTrimStartEnd": "error",
|
|
315
|
-
"useValidAutocomplete": "error"
|
|
316
|
-
}
|
|
317
|
-
}
|
|
9
|
+
"enabled": true
|
|
318
10
|
}
|
|
319
11
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-config-heck",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.1.0",
|
|
4
4
|
"description": "Contains an ESLint configuration for ES2015+, TypeScript, and React.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"author": "atheck",
|
|
27
27
|
"license": "MIT",
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@stylistic/eslint-plugin": "4.0.
|
|
29
|
+
"@stylistic/eslint-plugin": "4.0.1",
|
|
30
30
|
"@typescript-eslint/eslint-plugin": "8.24.1",
|
|
31
31
|
"@typescript-eslint/parser": "8.24.1",
|
|
32
|
-
"eslint": "9.
|
|
32
|
+
"eslint": "9.21.0",
|
|
33
33
|
"eslint-plugin-import": "2.31.0",
|
|
34
34
|
"eslint-plugin-jest": "28.11.0",
|
|
35
35
|
"eslint-plugin-react": "7.37.4",
|
|
@@ -45,7 +45,7 @@
|
|
|
45
45
|
"@testing-library/react": "16.2.0",
|
|
46
46
|
"@types/jest": "29.5.14",
|
|
47
47
|
"@types/react": "18.3.18",
|
|
48
|
-
"globals": "
|
|
48
|
+
"globals": "16.0.0",
|
|
49
49
|
"jest": "29.7.0",
|
|
50
50
|
"react": "18.3.1",
|
|
51
51
|
"semantic-release": "24.2.3"
|
package/readme.md
CHANGED
|
@@ -92,6 +92,14 @@ If you are using Biome you can also extend your Biome config with the "biomeLint
|
|
|
92
92
|
~~~json
|
|
93
93
|
{
|
|
94
94
|
"$schema": "./node_modules/@biomejs/biome/configuration_schema.json",
|
|
95
|
-
"extends": ["eslint-config-heck/
|
|
95
|
+
"extends": ["./node_modules/eslint-config-heck/biomeLinting.json"],
|
|
96
96
|
}
|
|
97
97
|
~~~
|
|
98
|
+
|
|
99
|
+
This enables all Biome rules (JavaScript, TypeScript, css, and json).
|
|
100
|
+
|
|
101
|
+
If you only want to enable rules for a specific language, you can use the following configurations:
|
|
102
|
+
|
|
103
|
+
- JavaScript/TypeScript: biomeJsTs.json
|
|
104
|
+
- CSS: biomeCss.json
|
|
105
|
+
- JSON: biomeJson.json
|