@ethang/eslint-config 17.2.0 → 17.3.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
@@ -2,16 +2,16 @@
2
2
 
3
3
  [View Config](https://eslint-config-ethang.pages.dev/rules)
4
4
 
5
- * 593 errored rules.
5
+ * 596 errored rules.
6
6
  * 141 rules from vanilla EsLint
7
7
  * 112 rules from [sindresorhus/eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn)
8
8
  * 105 rules from [@typescript/eslint](https://github.com/typescript-eslint/typescript-eslint)
9
- * 74 rules from [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react)
9
+ * 75 rules from [eslint-plugin-react](https://github.com/jsx-eslint/eslint-plugin-react)
10
10
  * 51 rules from [eslint-plugin-astro](https://www.npmjs.com/package/eslint-plugin-astro)
11
11
  * 35 rules from [jsx-a11y](https://github.com/jsx-eslint/eslint-plugin-jsx-a11y)
12
12
  * 32 rules from [eslint-plugin-sonarjs](https://github.com/SonarSource/eslint-plugin-sonarjs)
13
13
  * 20 rules from [eslint-plugin-n](https://github.com/eslint-community/eslint-plugin-n/tree/67bbfdf3c6862dcbfe455a4afbd83fa60f9d1ea4)
14
- * 17 rules from [eslint-plugin-perfectionist](https://github.com/azat-io/eslint-plugin-perfectionist)
14
+ * 19 rules from [eslint-plugin-perfectionist](https://github.com/azat-io/eslint-plugin-perfectionist)
15
15
  * 3 rules from [@tanstack/eslint-plugin-query](https://tanstack.com/query/latest/docs/eslint/eslint-plugin-query)
16
16
  * 2 rules from [eslint-plugin-react-hooks](https://github.com/facebook/react/tree/main/packages/eslint-plugin-react-hooks)
17
17
  * Includes Prettier built in (do NOT use this with a separate Prettier config.)
package/eslint.config.js CHANGED
@@ -806,7 +806,7 @@ export default tseslint.config(
806
806
  "object",
807
807
  "unknown",
808
808
  ],
809
- "newlines-between": "always",
809
+ newlinesBetween: "always",
810
810
  },
811
811
  ],
812
812
  "perfectionist/sort-interfaces": "error",
@@ -826,7 +826,21 @@ export default tseslint.config(
826
826
  },
827
827
  ],
828
828
  "perfectionist/sort-intersection-types": "error",
829
+ "perfectionist/sort-switch-case": [
830
+ "error",
831
+ {
832
+ type: "alphabetical",
833
+ order: "asc",
834
+ },
835
+ ],
829
836
  "perfectionist/sort-union-types": "error",
837
+ "perfectionist/sort-variable-declarations": [
838
+ "error",
839
+ {
840
+ type: "alphabetical",
841
+ order: "asc",
842
+ },
843
+ ],
830
844
  "perfectionist/sort-vue-attributes": [
831
845
  "error",
832
846
  { groups: ["shorthand", "multiline"] },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethang/eslint-config",
3
- "version": "17.2.0",
3
+ "version": "17.3.0",
4
4
  "repository": {
5
5
  "url": "git+https://github.com/eglove/eslint-config-ethang.git"
6
6
  },
@@ -24,7 +24,7 @@
24
24
  "eslint-plugin-astro": "^1.2.3",
25
25
  "eslint-plugin-jsx-a11y": "^6.9.0",
26
26
  "eslint-plugin-n": "^17.9.0",
27
- "eslint-plugin-perfectionist": "^2.11.0",
27
+ "eslint-plugin-perfectionist": "^3.0.0",
28
28
  "eslint-plugin-prettier": "^5.2.1",
29
29
  "eslint-plugin-react": "^7.35.0",
30
30
  "eslint-plugin-react-hooks": "^4.6.2",
@@ -43,7 +43,7 @@
43
43
  "eslint-plugin-astro": "^1.2.3",
44
44
  "eslint-plugin-jsx-a11y": "^6.9.0",
45
45
  "eslint-plugin-n": "^17.9.0",
46
- "eslint-plugin-perfectionist": "^2.11.0",
46
+ "eslint-plugin-perfectionist": "^3.0.0",
47
47
  "eslint-plugin-prettier": "^5.2.1",
48
48
  "eslint-plugin-react": "^7.35.0",
49
49
  "eslint-plugin-react-hooks": "^4.6.2",