eslint-config-heck 10.0.1 → 10.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.
@@ -19,6 +19,14 @@
19
19
  "max": 3
20
20
  }
21
21
  }
22
+ },
23
+ "nursery": {
24
+ "noExcessiveNestedCallbacks": {
25
+ "level": "warn",
26
+ "options": {
27
+ "max": 3
28
+ }
29
+ }
22
30
  }
23
31
  }
24
32
  },
package/biomeJsTs.json CHANGED
@@ -150,6 +150,7 @@
150
150
  },
151
151
  "nursery": {
152
152
  "noAmbiguousAnchorText": "off",
153
+ "noBaseToString": "error",
153
154
  "noComponentHookFactories": "off",
154
155
  "noConditionalExpect": "error",
155
156
  "noContinue": "off",
@@ -177,6 +178,7 @@
177
178
  "noNestedPromises": "error",
178
179
  "noParametersOnlyUsedInRecursion": "warn",
179
180
  "noProto": "error",
181
+ "noReactStringRefs": "error",
180
182
  "noRedundantDefaultExport": "error",
181
183
  "noReturnAssign": "error",
182
184
  "noScriptUrl": "error",
@@ -185,7 +187,7 @@
185
187
  "noTernary": "off",
186
188
  "noUndeclaredEnvVars": "off",
187
189
  "noUnknownAttribute": "error",
188
- "noUnnecessaryConditions": "off",
190
+ "noUnnecessaryConditions": "error",
189
191
  "noUnnecessaryTemplateExpression": "error",
190
192
  "noUnsafePlusOperands": "error",
191
193
  "noUselessReturn": "error",
@@ -226,6 +228,7 @@
226
228
  "useGlobalThis": "off",
227
229
  "useIframeSandbox": "error",
228
230
  "useImportsFirst": "error",
231
+ "useMathMinMax": "error",
229
232
  "useNamedCaptureGroup": "error",
230
233
  "useNullishCoalescing": "error",
231
234
  "useReactAsyncServerFunction": "warn",
@@ -235,6 +238,9 @@
235
238
  "useSortedClasses": "off",
236
239
  "useSpread": "error",
237
240
  "useStringStartsEndsWith": "error",
241
+ "useTestHooksInOrder": "error",
242
+ "useTestHooksOnTop": "error",
243
+ "useThisInClassMethods": "error",
238
244
  "useUnicodeRegex": "error",
239
245
  "useVarsOnTop": "error"
240
246
  },
@@ -15,7 +15,8 @@
15
15
  "noPlaywrightWaitForNavigation": "error",
16
16
  "noPlaywrightWaitForSelector": "error",
17
17
  "noPlaywrightWaitForTimeout": "error",
18
- "usePlaywrightValidDescribeCallback": "error"
18
+ "usePlaywrightValidDescribeCallback": "error",
19
+ "useTestHooksOnTop": "error"
19
20
  }
20
21
  }
21
22
  }
package/nodeWithBiome.js CHANGED
@@ -120,7 +120,7 @@ export default [
120
120
  "block-scoped-var": "error",
121
121
  camelcase: "off",
122
122
  "capitalized-comments": "off",
123
- "class-methods-use-this": "error",
123
+ "class-methods-use-this": "off",
124
124
  complexity: "off",
125
125
  "consistent-return": "error",
126
126
  "consistent-this": ["error", "that"],
@@ -451,12 +451,7 @@ export default [
451
451
  "react/no-redundant-should-component-update": "error",
452
452
  "react/no-render-return-value": "off",
453
453
  "react/no-set-state": "off",
454
- "react/no-string-refs": [
455
- "error",
456
- {
457
- noTemplateLiterals: true,
458
- },
459
- ],
454
+ "react/no-string-refs": "off",
460
455
  "react/no-this-in-sfc": "error",
461
456
  "react/no-typos": "error",
462
457
  "react/no-unescaped-entities": "error",
@@ -622,7 +617,7 @@ export default [
622
617
  "unicorn/prefer-json-parse-buffer": "error",
623
618
  "unicorn/prefer-keyboard-event-key": "error",
624
619
  "unicorn/prefer-logical-operator-over-ternary": "error",
625
- "unicorn/prefer-math-min-max": "error",
620
+ "unicorn/prefer-math-min-max": "off",
626
621
  "unicorn/prefer-math-trunc": "error",
627
622
  "unicorn/prefer-modern-dom-apis": "error",
628
623
  "unicorn/prefer-modern-math-apis": "error",
@@ -749,7 +744,7 @@ export default [
749
744
  "@typescript-eslint/ban-types": "off",
750
745
  "@typescript-eslint/class-literal-property-style": "error",
751
746
  "class-methods-use-this": "off",
752
- "@typescript-eslint/class-methods-use-this": "error",
747
+ "@typescript-eslint/class-methods-use-this": "off",
753
748
  "@typescript-eslint/consistent-generic-constructors": "error",
754
749
  "@typescript-eslint/consistent-indexed-object-style": "error",
755
750
  "@typescript-eslint/consistent-type-assertions": "error",
@@ -781,7 +776,7 @@ export default [
781
776
  "no-array-constructor": "off",
782
777
  "@typescript-eslint/no-array-constructor": "off",
783
778
  "@typescript-eslint/no-array-delete": "off",
784
- "@typescript-eslint/no-base-to-string": "error",
779
+ "@typescript-eslint/no-base-to-string": "off",
785
780
  "@typescript-eslint/no-confusing-non-null-assertion": "error",
786
781
  "@typescript-eslint/no-confusing-void-expression": "off",
787
782
  "@typescript-eslint/no-deprecated": "off",
@@ -830,12 +825,7 @@ export default [
830
825
  "@typescript-eslint/no-this-alias": "off",
831
826
  "@typescript-eslint/no-type-alias": "off",
832
827
  "@typescript-eslint/no-unnecessary-boolean-literal-compare": "error",
833
- "@typescript-eslint/no-unnecessary-condition": [
834
- "error",
835
- {
836
- checkTypePredicates: true,
837
- },
838
- ],
828
+ "@typescript-eslint/no-unnecessary-condition": "off",
839
829
  "@typescript-eslint/no-unnecessary-parameter-property-assignment":
840
830
  "error",
841
831
  "@typescript-eslint/no-unnecessary-qualifier": "error",
@@ -1017,8 +1007,8 @@ export default [
1017
1007
  "jest/prefer-equality-matcher": "error",
1018
1008
  "jest/prefer-expect-assertions": "off",
1019
1009
  "jest/prefer-expect-resolves": "error",
1020
- "jest/prefer-hooks-in-order": "error",
1021
- "jest/prefer-hooks-on-top": "error",
1010
+ "jest/prefer-hooks-in-order": "off",
1011
+ "jest/prefer-hooks-on-top": "off",
1022
1012
  "jest/prefer-importing-jest-globals": "off",
1023
1013
  "jest/prefer-jest-mocked": "error",
1024
1014
  "jest/prefer-lowercase-title": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-heck",
3
- "version": "10.0.1",
3
+ "version": "10.2.0",
4
4
  "description": "Contains an ESLint configuration for ES2015+, TypeScript, and React.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -13,7 +13,7 @@
13
13
  "./nodeWithBiome": "./nodeWithBiome.js"
14
14
  },
15
15
  "scripts": {
16
- "update": "npx -y npm-check-updates -i --cooldown 2 --install never && npx -y npm-check-updates -i --cooldown 2 --target minor --install never && npx -y npm-check-updates -i --cooldown 2 --target patch --install never && npm update --force",
16
+ "update": "npx -y npm-check-updates -i --install never && npx -y npm-check-updates -i --target minor --install never && npx -y npm-check-updates -i --target patch --install never && npm update --force",
17
17
  "lint": "eslint .",
18
18
  "semantic-release": "semantic-release"
19
19
  },
@@ -28,8 +28,8 @@
28
28
  "license": "MIT",
29
29
  "dependencies": {
30
30
  "@stylistic/eslint-plugin": "5.10.0",
31
- "@typescript-eslint/eslint-plugin": "8.59.0",
32
- "@typescript-eslint/parser": "8.59.0",
31
+ "@typescript-eslint/eslint-plugin": "8.59.2",
32
+ "@typescript-eslint/parser": "8.59.2",
33
33
  "eslint": "9.39.4",
34
34
  "eslint-plugin-import": "2.32.0",
35
35
  "eslint-plugin-jest": "29.15.2",
@@ -40,14 +40,14 @@
40
40
  "typescript": "6.0.3"
41
41
  },
42
42
  "devDependencies": {
43
- "@biomejs/biome": "2.4.13",
43
+ "@biomejs/biome": "2.4.15",
44
44
  "@testing-library/dom": "10.4.1",
45
45
  "@testing-library/react": "16.3.2",
46
46
  "@types/jest": "30.0.0",
47
47
  "@types/react": "19.2.14",
48
- "globals": "17.5.0",
49
- "jest": "30.3.0",
50
- "react": "19.2.5",
48
+ "globals": "17.6.0",
49
+ "jest": "30.4.2",
50
+ "react": "19.2.6",
51
51
  "semantic-release": "25.0.3"
52
52
  },
53
53
  "repository": {