eslint-config-heck 3.1.0 → 3.2.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/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
- "noConsoleLog": "error",
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,36 @@
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
- "noConsole": "error",
253
- "noDoneCallback": "error",
272
+ "noCommonJs": "error",
254
273
  "noDuplicateElseIf": "error",
255
- "noDuplicateJsonKeys": "error",
256
- "noEvolvingTypes": "error",
257
- "noLabelWithoutControl": "error",
258
- "noMisplacedAssertion": "error",
259
- "noReactSpecificProps": "off",
274
+ "noDynamicNamespaceImportAccess": "error",
275
+ "noEnum": "error",
276
+ "noExportedImports": "error",
277
+ "noIrregularWhitespace": "error",
278
+ "noProcessEnv": "error",
260
279
  "noRestrictedImports": "off",
261
- "noUndeclaredDependencies": "off",
262
- "noUnusedFunctionParameters": "error",
263
- "noUselessStringConcat": "error",
264
- "noUselessUndefinedInitialization": "error",
265
- "noYodaExpression": "error",
280
+ "noRestrictedTypes": "off",
281
+ "noSecrets": "error",
282
+ "noStaticElementInteractions": "error",
283
+ "noSubstr": "error",
284
+ "noUselessEscapeInRegex": "error",
266
285
  "useAdjacentOverloadSignatures": "error",
267
- "useConsistentBuiltinInstantiation": "error",
268
- "useDateNow": "error",
269
- "useDefaultSwitchClause": "off",
270
- "useErrorMessage": "error",
271
- "useExplicitLengthCheck": "error",
272
- "useFocusableInteractive": "error",
273
- "useImportExtensions": "off",
286
+ "useAriaPropsSupportedByRole": "error",
287
+ "useConsistentCurlyBraces": "off",
288
+ "useConsistentMemberAccessibility": "error",
274
289
  "useImportRestrictions": "error",
275
- "useNumberToFixedDigitsArgument": "error",
276
- "useSemanticElements": "error",
277
290
  "useSortedClasses": "off",
278
- "useThrowNewError": "error",
279
- "useThrowOnlyError": "error",
280
- "useTopLevelRegex": "error"
291
+ "useStrictMode": "error",
292
+ "useTrimStartEnd": "error",
293
+ "useValidAutocomplete": "error"
281
294
  }
282
295
  }
283
296
  }
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
  {
@@ -477,7 +478,6 @@ const rules = {
477
478
  allowExpressions: true,
478
479
  },
479
480
  ],
480
- "react/jsx-pascal-case": "error",
481
481
  "react/jsx-props-no-spread-multi": "error",
482
482
  "react/jsx-props-no-spreading": "off",
483
483
  "react/jsx-sort-props": "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": "error",
231
+ "no-useless-escape": "off",
240
232
  "no-useless-rename": "off",
241
233
  "no-useless-return": "error",
242
234
  "no-var": "off",
@@ -294,7 +286,6 @@ const rules = {
294
286
  "unicode-bom": "error",
295
287
 
296
288
  // @stylistic
297
- "@stylistic/jsx-pascal-case": "error",
298
289
  "@stylistic/max-statements-per-line": "error",
299
290
  "@stylistic/multiline-comment-style": ["error", "separate-lines"],
300
291
  "@stylistic/no-floating-decimal": "error",
@@ -370,6 +361,7 @@ const rules = {
370
361
  "react/forbid-elements": "off",
371
362
  "react/forbid-foreign-prop-types": "off",
372
363
  "react/forbid-prop-types": "off",
364
+ "react/forward-ref-uses-ref": "error",
373
365
  "react/function-component-definition": [
374
366
  "error",
375
367
  {
@@ -620,9 +612,9 @@ const rules = {
620
612
  "unicorn/prefer-spread": "error",
621
613
  "unicorn/prefer-string-raw": "error",
622
614
  "unicorn/prefer-string-replace-all": "error",
623
- "unicorn/prefer-string-slice": "error",
615
+ "unicorn/prefer-string-slice": "off",
624
616
  "unicorn/prefer-string-starts-ends-with": "error",
625
- "unicorn/prefer-string-trim-start-end": "error",
617
+ "unicorn/prefer-string-trim-start-end": "off",
626
618
  "unicorn/prefer-structured-clone": "error",
627
619
  "unicorn/prefer-switch": "error",
628
620
 
@@ -751,7 +743,7 @@ const overrides = [
751
743
  allowConciseArrowFunctionExpressionsStartingWithVoid: false,
752
744
  },
753
745
  ],
754
- "@typescript-eslint/explicit-member-accessibility": "error",
746
+ "@typescript-eslint/explicit-member-accessibility": "off",
755
747
  "@typescript-eslint/explicit-module-boundary-types": "off",
756
748
  "init-declarations": "off",
757
749
  "@typescript-eslint/init-declarations": "off",
@@ -807,7 +799,7 @@ const overrides = [
807
799
  "no-redeclare": "off",
808
800
  "@typescript-eslint/no-redeclare": "off",
809
801
  "@typescript-eslint/no-redundant-type-constituents": "error",
810
- "@typescript-eslint/no-require-imports": "error",
802
+ "@typescript-eslint/no-require-imports": "off",
811
803
  "no-restricted-imports": "off",
812
804
  "@typescript-eslint/no-restricted-imports": "off",
813
805
  "@typescript-eslint/no-restricted-types": "off",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-heck",
3
- "version": "3.1.0",
3
+ "version": "3.2.0",
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.7.1",
33
- "@typescript-eslint/eslint-plugin": "8.3.0",
34
- "@typescript-eslint/parser": "8.3.0",
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.29.1",
38
- "eslint-plugin-jest": "28.8.1",
39
- "eslint-plugin-react": "7.35.0",
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.5.4"
44
+ "typescript": "5.6.2"
45
45
  },
46
46
  "devDependencies": {
47
- "@biomejs/biome": "1.8.3",
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.12",
51
- "@types/react": "18.3.4",
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.0"
54
+ "semantic-release": "24.1.1"
55
55
  },
56
56
  "repository": {
57
57
  "type": "git",