eslint-config-heck 2.4.4 → 2.6.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/node.cjs CHANGED
@@ -763,12 +763,14 @@ const rules = {
763
763
  "unicorn/import-style": "error",
764
764
  "unicorn/new-for-builtins": "error",
765
765
  "unicorn/no-abusive-eslint-disable": "error",
766
+ "unicorn/no-anonymous-default-export": "error",
766
767
  "unicorn/no-array-callback-reference": "off",
767
768
  "unicorn/no-array-for-each": "off",
768
769
  "unicorn/no-array-method-this-argument": "error",
769
770
  "unicorn/no-array-push-push": "error",
770
771
  "unicorn/no-array-reduce": "off",
771
772
  "unicorn/no-await-expression-member": "error",
773
+ "unicorn/no-await-in-promise-methods": "error",
772
774
  "unicorn/no-console-spaces": "error",
773
775
  "unicorn/no-document-cookie": "error",
774
776
  "unicorn/no-empty-file": "error",
@@ -785,6 +787,7 @@ const rules = {
785
787
  "unicorn/no-null": "off",
786
788
  "unicorn/no-object-as-default-parameter": "error",
787
789
  "unicorn/no-process-exit": "error",
790
+ "unicorn/no-single-promise-in-promise-methods": "error",
788
791
  "unicorn/no-static-only-class": "error",
789
792
  "unicorn/no-thenable": "error",
790
793
  "unicorn/no-this-assignment": "error",
@@ -1142,6 +1145,7 @@ const overrides = [
1142
1145
  },
1143
1146
  ],
1144
1147
  "@typescript-eslint/unified-signatures": "error",
1148
+ "@typescript-eslint/use-unknown-in-catch-callback-variable": "error",
1145
1149
 
1146
1150
  // Extension rules
1147
1151
  "block-spacing": "off",
@@ -1219,7 +1223,7 @@ const overrides = [
1219
1223
  "no-shadow": "off",
1220
1224
  "@typescript-eslint/no-shadow": "error",
1221
1225
  "no-throw-literal": "off",
1222
- "@typescript-eslint/no-throw-literal": [
1226
+ "@typescript-eslint/only-throw-error": [
1223
1227
  "error",
1224
1228
  {
1225
1229
  allowThrowingAny: false,
package/nodeWithBiome.cjs CHANGED
@@ -610,12 +610,14 @@ const rules = {
610
610
  "unicorn/import-style": "error",
611
611
  "unicorn/new-for-builtins": "error",
612
612
  "unicorn/no-abusive-eslint-disable": "error",
613
+ "unicorn/no-anonymous-default-export": "error",
613
614
  "unicorn/no-array-callback-reference": "off",
614
615
  "unicorn/no-array-for-each": "off",
615
616
  "unicorn/no-array-method-this-argument": "error",
616
617
  "unicorn/no-array-push-push": "error",
617
618
  "unicorn/no-array-reduce": "off",
618
619
  "unicorn/no-await-expression-member": "error",
620
+ "unicorn/no-await-in-promise-methods": "error",
619
621
  "unicorn/no-console-spaces": "error",
620
622
  "unicorn/no-document-cookie": "error",
621
623
  "unicorn/no-empty-file": "error",
@@ -632,6 +634,7 @@ const rules = {
632
634
  "unicorn/no-null": "off",
633
635
  "unicorn/no-object-as-default-parameter": "error",
634
636
  "unicorn/no-process-exit": "error",
637
+ "unicorn/no-single-promise-in-promise-methods": "error",
635
638
  "unicorn/no-static-only-class": "off",
636
639
  "unicorn/no-thenable": "off",
637
640
  "unicorn/no-this-assignment": "error",
@@ -955,6 +958,7 @@ const overrides = [
955
958
  },
956
959
  ],
957
960
  "@typescript-eslint/unified-signatures": "error",
961
+ "@typescript-eslint/use-unknown-in-catch-callback-variable": "error",
958
962
 
959
963
  // Extension rules
960
964
  "block-spacing": "off",
@@ -1010,7 +1014,7 @@ const overrides = [
1010
1014
  "no-shadow": "off",
1011
1015
  "@typescript-eslint/no-shadow": "error",
1012
1016
  "no-throw-literal": "off",
1013
- "@typescript-eslint/no-throw-literal": [
1017
+ "@typescript-eslint/only-throw-error": [
1014
1018
  "error",
1015
1019
  {
1016
1020
  allowThrowingAny: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-heck",
3
- "version": "2.4.4",
3
+ "version": "2.6.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
- "@typescript-eslint/eslint-plugin": "7.2.0",
33
- "@typescript-eslint/parser": "7.2.0",
32
+ "@typescript-eslint/eslint-plugin": "7.5.0",
33
+ "@typescript-eslint/parser": "7.5.0",
34
34
  "eslint": "8.57.0",
35
35
  "eslint-import-resolver-typescript": "3.6.1",
36
36
  "eslint-plugin-deprecation": "2.0.0",
37
37
  "eslint-plugin-import": "2.29.1",
38
38
  "eslint-plugin-jest": "27.9.0",
39
- "eslint-plugin-react": "7.34.0",
39
+ "eslint-plugin-react": "7.34.1",
40
40
  "eslint-plugin-react-hooks": "4.6.0",
41
41
  "eslint-plugin-react-native": "4.1.0",
42
42
  "eslint-plugin-testing-library": "6.2.0",
43
43
  "eslint-plugin-typescript-heck": "1.3.1",
44
- "eslint-plugin-unicorn": "51.0.1",
45
- "typescript": "5.4.2"
44
+ "eslint-plugin-unicorn": "52.0.0",
45
+ "typescript": "5.4.4"
46
46
  },
47
47
  "devDependencies": {
48
- "@biomejs/biome": "1.6.1",
49
- "@testing-library/react": "14.2.1",
48
+ "@biomejs/biome": "1.6.3",
49
+ "@testing-library/react": "14.2.2",
50
50
  "@types/jest": "29.5.12",
51
- "@types/react": "18.2.65",
51
+ "@types/react": "18.2.74",
52
52
  "jest": "29.7.0",
53
53
  "react": "18.2.0",
54
- "semantic-release": "23.0.2"
54
+ "semantic-release": "23.0.7"
55
55
  },
56
56
  "repository": {
57
57
  "type": "git",