@ethang/eslint-config 19.9.1 → 19.10.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/README.md CHANGED
@@ -5,10 +5,10 @@
5
5
  > [!CAUTION]
6
6
  > Do not use this with Prettier! Styling rules are included.
7
7
 
8
- - 891 errored rules.
8
+ - 894 errored rules.
9
9
  - 294 rules from [eslint-plugin-sonarjs](https://github.com/SonarSource/SonarJS/blob/master/packages/jsts/src/rules/README.md)
10
10
  - 144 rules from [@eslint/js](https://github.com/eslint/eslint/tree/main/packages/js)
11
- - 113 rules from [sindresorhus/eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn)
11
+ - 116 rules from [sindresorhus/eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn)
12
12
  - 103 rules from [@typescript/eslint](https://github.com/typescript-eslint/typescript-eslint)
13
13
  - 67 rules from [@stylistic/eslint-plugin](https://eslint.style/)
14
14
  - 42 rules from [eslint-plugin-lodash](https://github.com/wix-incubator/eslint-plugin-lodash)
package/eslint.config.js CHANGED
@@ -81,6 +81,7 @@ export default tseslint.config(
81
81
  "nextui",
82
82
  "speculationrules",
83
83
  "zustand",
84
+ "vinxi",
84
85
  ],
85
86
  },
86
87
  },
@@ -468,6 +469,7 @@ export default tseslint.config(
468
469
  "unicorn/catch-error-name": "error",
469
470
  "unicorn/consistent-destructuring": "error",
470
471
  "unicorn/consistent-empty-array-spread": "error",
472
+ "unicorn/consistent-existence-index-check": "error",
471
473
  "unicorn/consistent-function-scoping": "error",
472
474
  "unicorn/custom-error-definition": "error",
473
475
  "unicorn/empty-brace-spaces": "off",
@@ -543,10 +545,12 @@ export default tseslint.config(
543
545
  "unicorn/prefer-dom-node-text-content": "error",
544
546
  "unicorn/prefer-event-target": "error",
545
547
  "unicorn/prefer-export-from": "error",
548
+ "unicorn/prefer-global-this": "error",
546
549
  "unicorn/prefer-includes": "error",
547
550
  "unicorn/prefer-json-parse-buffer": "error",
548
551
  "unicorn/prefer-keyboard-event-key": "error",
549
552
  "unicorn/prefer-logical-operator-over-ternary": "error",
553
+ "unicorn/prefer-math-min-max": "error",
550
554
  "unicorn/prefer-math-trunc": "error",
551
555
  "unicorn/prefer-modern-dom-apis": "error",
552
556
  "unicorn/prefer-modern-math-apis": "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethang/eslint-config",
3
- "version": "19.9.1",
3
+ "version": "19.10.0",
4
4
  "repository": {
5
5
  "url": "git+https://github.com/eglove/eslint-config-ethang.git"
6
6
  },
@@ -37,7 +37,7 @@
37
37
  "eslint-plugin-solid": "^0.14.3",
38
38
  "eslint-plugin-sonarjs": "2.0.3",
39
39
  "eslint-plugin-tailwindcss": "^3.17.4",
40
- "eslint-plugin-unicorn": "^55.0.0",
40
+ "eslint-plugin-unicorn": "^56.0.0",
41
41
  "typescript": "^5.6.2",
42
42
  "typescript-eslint": "^8.8.0"
43
43
  },
@@ -77,7 +77,7 @@
77
77
  "eslint-plugin-solid": "^0.14.3",
78
78
  "eslint-plugin-sonarjs": "2.0.3",
79
79
  "eslint-plugin-tailwindcss": "^3.17.4",
80
- "eslint-plugin-unicorn": "^55.0.0",
80
+ "eslint-plugin-unicorn": "^56.0.0",
81
81
  "typescript": "^5.6.2",
82
82
  "typescript-eslint": "^8.8.0"
83
83
  },
package/setup/cspell.ts CHANGED
@@ -40,6 +40,7 @@ const customRules: CustomRules = [
40
40
  "nextui",
41
41
  "speculationrules",
42
42
  "zustand",
43
+ "vinxi",
43
44
  ],
44
45
  },
45
46
  },