eslint-config-heck 2.10.0 → 2.11.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 CHANGED
@@ -69,16 +69,19 @@
69
69
  "correctness": {
70
70
  "noChildrenProp": "error",
71
71
  "noConstantCondition": "error",
72
+ "noConstantMathMinMaxClamp": "error",
72
73
  "noConstAssign": "error",
73
74
  "noConstructorReturn": "error",
74
75
  "noEmptyCharacterClassInRegex": "error",
75
76
  "noEmptyPattern": "error",
77
+ "noFlatMapIdentity": "error",
76
78
  "noGlobalObjectCalls": "error",
77
79
  "noInnerDeclarations": "error",
78
80
  "noInvalidConstructorSuper": "error",
79
81
  "noInvalidNewBuiltin": "error",
80
82
  "noInvalidUseBeforeDeclaration": "off",
81
83
  "noNewSymbol": "off",
84
+ "noNodejsModules": "off",
82
85
  "noNonoctalDecimalEscape": "error",
83
86
  "noPrecisionLoss": "error",
84
87
  "noRenderReturnValue": "error",
@@ -98,6 +101,7 @@
98
101
  "noUnusedVariables": "error",
99
102
  "noVoidElementsWithChildren": "error",
100
103
  "noVoidTypeReturn": "error",
104
+ "useArrayLiterals": "error",
101
105
  "useExhaustiveDependencies": "error",
102
106
  "useHookAtTopLevel": "error",
103
107
  "useIsNan": "error",
@@ -229,24 +233,34 @@
229
233
  },
230
234
  "nursery": {
231
235
  "noConsole": "error",
232
- "noConstantMathMinMaxClamp": "error",
233
236
  "noDoneCallback": "error",
234
237
  "noDuplicateElseIf": "error",
235
238
  "noDuplicateJsonKeys": "error",
236
- "noEvolvingAny": "off",
237
- "noFlatMapIdentity": "error",
239
+ "noEvolvingTypes": "error",
240
+ "noLabelWithoutControl": "error",
238
241
  "noMisplacedAssertion": "error",
239
- "noNodejsModules": "off",
240
242
  "noReactSpecificProps": "off",
241
243
  "noRestrictedImports": "off",
242
244
  "noUndeclaredDependencies": "off",
245
+ "noUnusedFunctionParameters": "error",
246
+ "noUselessStringConcat": "error",
243
247
  "noUselessUndefinedInitialization": "error",
244
- "useArrayLiterals": "error",
248
+ "noYodaExpression": "error",
249
+ "useAdjacentOverloadSignatures": "error",
245
250
  "useConsistentBuiltinInstantiation": "error",
251
+ "useDateNow": "error",
246
252
  "useDefaultSwitchClause": "off",
253
+ "useErrorMessage": "error",
247
254
  "useExplicitLengthCheck": "error",
255
+ "useFocusableInteractive": "error",
256
+ "useImportExtensions": "error",
248
257
  "useImportRestrictions": "error",
249
- "useSortedClasses": "off"
258
+ "useNumberToFixedDigitsArgument": "error",
259
+ "useSemanticElements": "error",
260
+ "useSortedClasses": "off",
261
+ "useThrowNewError": "error",
262
+ "useThrowOnlyError": "error",
263
+ "useTopLevelRegex": "error"
250
264
  }
251
265
  }
252
266
  }
package/node.cjs CHANGED
@@ -1094,7 +1094,7 @@ const overrides = [
1094
1094
  "@typescript-eslint/no-unsafe-return": "error",
1095
1095
  "@typescript-eslint/no-unsafe-unary-minus": "error",
1096
1096
  "@typescript-eslint/no-useless-empty-export": "error",
1097
- "@typescript-eslint/no-useless-template-literals": "error",
1097
+ "@typescript-eslint/no-unnecessary-template-expression": "error",
1098
1098
  "@typescript-eslint/no-var-requires": "error",
1099
1099
  "@typescript-eslint/non-nullable-type-assertion-style": "off",
1100
1100
  "@typescript-eslint/parameter-properties": "off",
@@ -1126,7 +1126,6 @@ const overrides = [
1126
1126
  "@typescript-eslint/prefer-regexp-exec": "error",
1127
1127
  "@typescript-eslint/prefer-return-this-type": "error",
1128
1128
  "@typescript-eslint/prefer-string-starts-ends-with": "error",
1129
- "@typescript-eslint/prefer-ts-expect-error": "error",
1130
1129
  "@typescript-eslint/promise-function-async": "error",
1131
1130
  "@typescript-eslint/require-array-sort-compare": "error",
1132
1131
  "@typescript-eslint/restrict-plus-operands": "error",
@@ -1455,6 +1454,7 @@ const overrides = [
1455
1454
  "jest/prefer-expect-resolves": "error",
1456
1455
  "jest/prefer-hooks-on-top": "error",
1457
1456
  "jest/prefer-importing-jest-globals": "off",
1457
+ "jest/prefer-jest-mocked": "error",
1458
1458
  "jest/prefer-lowercase-title": [
1459
1459
  "error",
1460
1460
  {
package/nodeWithBiome.cjs CHANGED
@@ -157,13 +157,13 @@ const rules = {
157
157
  "no-self-assign": "off",
158
158
  "no-self-compare": "off",
159
159
  "no-sequences": "off",
160
- "no-throw-literal": "error",
160
+ "no-throw-literal": "off",
161
161
  "no-unmodified-loop-condition": "error",
162
162
  "no-unused-expressions": "error",
163
163
  "no-unused-labels": "off",
164
164
  "no-useless-call": "error",
165
165
  "no-useless-catch": "off",
166
- "no-useless-concat": "error",
166
+ "no-useless-concat": "off",
167
167
  "no-useless-escape": "error",
168
168
  "no-useless-return": "error",
169
169
  "no-void": "off",
@@ -178,14 +178,7 @@ const rules = {
178
178
  "require-unicode-regexp": "error",
179
179
  "vars-on-top": "error",
180
180
  "wrap-iife": "off",
181
- yoda: [
182
- "error",
183
- "never",
184
- {
185
- exceptRange: true,
186
- onlyEquality: false,
187
- },
188
- ],
181
+ yoda: "off",
189
182
 
190
183
  // Strict mode
191
184
  strict: ["error", "global"],
@@ -602,7 +595,7 @@ const rules = {
602
595
  ],
603
596
  "unicorn/custom-error-definition": "off",
604
597
  "unicorn/empty-brace-spaces": "off",
605
- "unicorn/error-message": "error",
598
+ "unicorn/error-message": "off",
606
599
  "unicorn/escape-case": "error",
607
600
  "unicorn/expiring-todo-comments": "error",
608
601
  "unicorn/explicit-length-check": "off",
@@ -666,7 +659,7 @@ const rules = {
666
659
  "unicorn/prefer-at": "error",
667
660
  "unicorn/prefer-blob-reading-methods": "error",
668
661
  "unicorn/prefer-code-point": "error",
669
- "unicorn/prefer-date-now": "error",
662
+ "unicorn/prefer-date-now": "off",
670
663
  "unicorn/prefer-default-parameters": "error",
671
664
  "unicorn/prefer-dom-node-append": "error",
672
665
  "unicorn/prefer-dom-node-dataset": "error",
@@ -709,13 +702,13 @@ const rules = {
709
702
  "unicorn/prevent-abbreviations": "off",
710
703
  "unicorn/relative-url-style": "error",
711
704
  "unicorn/require-array-join-separator": "error",
712
- "unicorn/require-number-to-fixed-digits-argument": "error",
705
+ "unicorn/require-number-to-fixed-digits-argument": "off",
713
706
  "unicorn/require-post-message-target-origin": "error",
714
707
  "unicorn/string-content": "off",
715
708
  "unicorn/switch-case-braces": "off",
716
709
  "unicorn/template-indent": "off",
717
710
  "unicorn/text-encoding-identifier-case": "error",
718
- "unicorn/throw-new-error": "error",
711
+ "unicorn/throw-new-error": "off",
719
712
 
720
713
  // eslint-plugin-import
721
714
  "import/export": "off",
@@ -790,7 +783,7 @@ const overrides = [
790
783
  plugins: [...plugins, "@typescript-eslint", "deprecation"],
791
784
  rules: {
792
785
  // Typescript
793
- "@typescript-eslint/adjacent-overload-signatures": "error",
786
+ "@typescript-eslint/adjacent-overload-signatures": "off",
794
787
  "@typescript-eslint/array-type": "off",
795
788
  "@typescript-eslint/await-thenable": "error",
796
789
  "@typescript-eslint/ban-ts-comment": [
@@ -903,7 +896,7 @@ const overrides = [
903
896
  "@typescript-eslint/no-unsafe-return": "error",
904
897
  "@typescript-eslint/no-unsafe-unary-minus": "error",
905
898
  "@typescript-eslint/no-useless-empty-export": "off",
906
- "@typescript-eslint/no-useless-template-literals": "error",
899
+ "@typescript-eslint/no-unnecessary-template-expression": "error",
907
900
  "@typescript-eslint/no-var-requires": "error",
908
901
  "@typescript-eslint/non-nullable-type-assertion-style": "off",
909
902
  "@typescript-eslint/parameter-properties": "off",
@@ -935,7 +928,6 @@ const overrides = [
935
928
  "@typescript-eslint/prefer-regexp-exec": "error",
936
929
  "@typescript-eslint/prefer-return-this-type": "error",
937
930
  "@typescript-eslint/prefer-string-starts-ends-with": "error",
938
- "@typescript-eslint/prefer-ts-expect-error": "error",
939
931
  "@typescript-eslint/promise-function-async": "error",
940
932
  "@typescript-eslint/require-array-sort-compare": "error",
941
933
  "@typescript-eslint/restrict-plus-operands": "error",
@@ -1014,13 +1006,7 @@ const overrides = [
1014
1006
  "no-shadow": "off",
1015
1007
  "@typescript-eslint/no-shadow": "error",
1016
1008
  "no-throw-literal": "off",
1017
- "@typescript-eslint/only-throw-error": [
1018
- "error",
1019
- {
1020
- allowThrowingAny: false,
1021
- allowThrowingUnknown: false,
1022
- },
1023
- ],
1009
+ "@typescript-eslint/only-throw-error": "off",
1024
1010
  "no-unused-expressions": "off",
1025
1011
  "@typescript-eslint/no-unused-expressions": "error",
1026
1012
  "no-unused-vars": "off",
@@ -1222,6 +1208,7 @@ const overrides = [
1222
1208
  "jest/prefer-expect-resolves": "error",
1223
1209
  "jest/prefer-hooks-on-top": "error",
1224
1210
  "jest/prefer-importing-jest-globals": "off",
1211
+ "jest/prefer-jest-mocked": "error",
1225
1212
  "jest/prefer-lowercase-title": [
1226
1213
  "error",
1227
1214
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-heck",
3
- "version": "2.10.0",
3
+ "version": "2.11.1",
4
4
  "description": "Contains an ESLint configuration for ES2015+, TypeScript, and React.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -29,14 +29,14 @@
29
29
  "author": "atheck",
30
30
  "license": "MIT",
31
31
  "dependencies": {
32
- "@typescript-eslint/eslint-plugin": "7.8.0",
33
- "@typescript-eslint/parser": "7.8.0",
32
+ "@typescript-eslint/eslint-plugin": "7.12.0",
33
+ "@typescript-eslint/parser": "7.12.0",
34
34
  "eslint": "8.57.0",
35
35
  "eslint-import-resolver-typescript": "3.6.1",
36
- "eslint-plugin-deprecation": "2.0.0",
36
+ "eslint-plugin-deprecation": "3.0.0",
37
37
  "eslint-plugin-import": "2.29.1",
38
- "eslint-plugin-jest": "28.5.0",
39
- "eslint-plugin-react": "7.34.1",
38
+ "eslint-plugin-jest": "28.6.0",
39
+ "eslint-plugin-react": "7.34.2",
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.2.2",
@@ -45,13 +45,14 @@
45
45
  "typescript": "5.4.5"
46
46
  },
47
47
  "devDependencies": {
48
- "@biomejs/biome": "1.7.3",
49
- "@testing-library/react": "15.0.7",
48
+ "@biomejs/biome": "1.8.0",
49
+ "@testing-library/dom": "10.1.0",
50
+ "@testing-library/react": "16.0.0",
50
51
  "@types/jest": "29.5.12",
51
- "@types/react": "18.3.2",
52
+ "@types/react": "18.3.3",
52
53
  "jest": "29.7.0",
53
54
  "react": "18.3.1",
54
- "semantic-release": "23.1.1"
55
+ "semantic-release": "24.0.0"
55
56
  },
56
57
  "repository": {
57
58
  "type": "git",