eslint-config-heck 1.23.2 → 1.25.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.
Files changed (2) hide show
  1. package/node.js +11 -4
  2. package/package.json +12 -12
package/node.js CHANGED
@@ -28,7 +28,7 @@ const settings = {
28
28
  };
29
29
 
30
30
  const rules = {
31
- // Possible errors
31
+ // Possible problems
32
32
  "for-direction": "error",
33
33
  "getter-return": "error",
34
34
  "no-async-promise-executor": "error",
@@ -97,7 +97,7 @@ const rules = {
97
97
  "use-isnan": "error",
98
98
  "valid-typeof": "error",
99
99
 
100
- // Best practices
100
+ // Suggestions
101
101
  "accessor-pairs": [
102
102
  "error",
103
103
  {
@@ -126,6 +126,7 @@ const rules = {
126
126
  eqeqeq: ["error", "always"],
127
127
  "grouped-accessor-pairs": ["error", "getBeforeSet"],
128
128
  "guard-for-in": "error",
129
+ "logical-assignment-operators": "error",
129
130
  "max-classes-per-file": "off",
130
131
  "no-alert": "error",
131
132
  "no-caller": "error",
@@ -248,7 +249,7 @@ const rules = {
248
249
  ],
249
250
  "no-use-before-define": ["error", "nofunc"],
250
251
 
251
- // Stylistic issues
252
+ // Layout & Formatting
252
253
  "array-bracket-newline": [
253
254
  "error",
254
255
  {
@@ -733,6 +734,7 @@ const rules = {
733
734
  "unicorn/no-static-only-class": "error",
734
735
  "unicorn/no-thenable": "error",
735
736
  "unicorn/no-this-assignment": "error",
737
+ "unicorn/no-unnecessary-await": "error",
736
738
  "unicorn/no-unreadable-array-destructuring": "error",
737
739
  "unicorn/no-unreadable-iife": "error",
738
740
  "unicorn/no-unsafe-regex": "off",
@@ -751,7 +753,11 @@ const rules = {
751
753
  },
752
754
  ],
753
755
  "unicorn/prefer-add-event-listener": "error",
754
- "unicorn/prefer-array-find": "error",
756
+ "unicorn/prefer-array-find": [
757
+ "error", {
758
+ checkFromLast: true,
759
+ },
760
+ ],
755
761
  "unicorn/prefer-array-flat": "error",
756
762
  "unicorn/prefer-array-flat-map": "error",
757
763
  "unicorn/prefer-array-index-of": "error",
@@ -803,6 +809,7 @@ const rules = {
803
809
  "unicorn/require-number-to-fixed-digits-argument": "error",
804
810
  "unicorn/require-post-message-target-origin": "error",
805
811
  "unicorn/string-content": "off",
812
+ "unicorn/switch-case-braces": ["error", "avoid"],
806
813
  "unicorn/template-indent": "off",
807
814
  "unicorn/text-encoding-identifier-case": "error",
808
815
  "unicorn/throw-new-error": "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-config-heck",
3
- "version": "1.23.2",
3
+ "version": "1.25.0",
4
4
  "description": "Contains an ESLint configuration for ES2015+, TypeScript, and React.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -18,24 +18,24 @@
18
18
  "license": "MIT",
19
19
  "dependencies": {
20
20
  "@delagen/eslint-plugin-deprecation": "1.3.2",
21
- "@typescript-eslint/eslint-plugin": "5.37.0",
22
- "@typescript-eslint/parser": "5.37.0",
23
- "eslint": "8.23.1",
21
+ "@typescript-eslint/eslint-plugin": "5.40.0",
22
+ "@typescript-eslint/parser": "5.40.0",
23
+ "eslint": "8.25.0",
24
24
  "eslint-import-resolver-typescript": "3.5.1",
25
25
  "eslint-plugin-import": "2.26.0",
26
- "eslint-plugin-jest": "27.0.4",
27
- "eslint-plugin-react": "7.31.8",
26
+ "eslint-plugin-jest": "27.1.1",
27
+ "eslint-plugin-react": "7.31.10",
28
28
  "eslint-plugin-react-hooks": "4.6.0",
29
- "eslint-plugin-testing-library": "5.6.4",
29
+ "eslint-plugin-testing-library": "5.7.2",
30
30
  "eslint-plugin-typescript-heck": "1.3.1",
31
- "eslint-plugin-unicorn": "43.0.2",
32
- "typescript": "4.8.3"
31
+ "eslint-plugin-unicorn": "44.0.2",
32
+ "typescript": "4.8.4"
33
33
  },
34
34
  "devDependencies": {
35
35
  "@testing-library/react": "13.4.0",
36
- "@types/jest": "29.0.3",
37
- "@types/react": "18.0.20",
38
- "jest": "29.0.3",
36
+ "@types/jest": "29.1.2",
37
+ "@types/react": "18.0.21",
38
+ "jest": "29.1.2",
39
39
  "react": "18.2.0",
40
40
  "semantic-release": "19.0.5"
41
41
  },