@ethang/eslint-config 19.7.3 → 19.7.5

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,9 +5,9 @@
5
5
  > [!CAUTION]
6
6
  > Do not use this with Prettier! Styling rules are included.
7
7
 
8
- - 887 errored rules.
8
+ - 889 errored rules.
9
9
  - 289 rules from [eslint-plugin-sonarjs](https://github.com/SonarSource/SonarJS/blob/master/packages/jsts/src/rules/README.md)
10
- - 145 rules from [@eslint/js](https://github.com/eslint/eslint/tree/main/packages/js)
10
+ - 144 rules from [@eslint/js](https://github.com/eslint/eslint/tree/main/packages/js)
11
11
  - 113 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
  - 91 rules from [@stylistic/eslint-plugin](https://eslint.style/)
@@ -19,6 +19,7 @@
19
19
  - 7 rules from [@eslint/markdown](https://github.com/eslint/markdown)
20
20
  - 5 rules from [@tanstack/eslint-plugin-query](https://tanstack.com/query/latest/docs/eslint/eslint-plugin-query)
21
21
  - 4 rules from [eslint-plugin-barrel-files](https://github.com/thepassle/eslint-plugin-barrel-files)
22
+ - 3 rules from [exception-handling](https://github.com/Akronae/eslint-plugin-exception-handling)
22
23
  - 2 rules from [@eslint/json](https://github.com/eslint/json)
23
24
  - 1 rule from [eslint-plugin-depend](https://github.com/es-tooling/eslint-plugin-depend/tree/main)
24
25
  - 1 rule from [@cspell/eslint-plugin](https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell-eslint-plugin)
package/eslint.config.js CHANGED
@@ -146,7 +146,7 @@ export default tseslint.config(
146
146
  "no-delete-var": "error",
147
147
  "no-div-regex": "error",
148
148
  "no-dupe-args": "error",
149
- "no-dupe-class-members": "error",
149
+ "no-dupe-class-members": "off",
150
150
  "no-dupe-else-if": "error",
151
151
  "no-dupe-keys": "error",
152
152
  "no-duplicate-case": "error",
@@ -932,9 +932,9 @@ export default tseslint.config(
932
932
  "sonar/weak-ssl": "error",
933
933
  "sonar/x-powered-by": "error",
934
934
  "sonar/xml-parser-xxe": "error",
935
- "exception-handling/might-throw": "off",
936
- "exception-handling/no-unhandled": "off",
937
- "exception-handling/use-error-cause": "off",
935
+ "exception-handling/might-throw": "error",
936
+ "exception-handling/no-unhandled": "error",
937
+ "exception-handling/use-error-cause": "error",
938
938
  "tailwind/classnames-order": "error",
939
939
  "tailwind/enforces-negative-arbitrary-values": "error",
940
940
  "tailwind/enforces-shorthand": "error",
@@ -950,7 +950,19 @@ export default tseslint.config(
950
950
  "stylistic/arrow-spacing": "error",
951
951
  "stylistic/block-spacing": "error",
952
952
  "stylistic/brace-style": "error",
953
- "stylistic/comma-dangle": ["error", "always-multiline"],
953
+ "stylistic/comma-dangle": [
954
+ "error",
955
+ {
956
+ arrays: "always-multiline",
957
+ objects: "always-multiline",
958
+ imports: "always-multiline",
959
+ exports: "always-multiline",
960
+ functions: "always-multiline",
961
+ enums: "never",
962
+ generics: "never",
963
+ tuples: "never",
964
+ },
965
+ ],
954
966
  "stylistic/comma-spacing": "error",
955
967
  "stylistic/comma-style": "error",
956
968
  "stylistic/computed-property-spacing": "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethang/eslint-config",
3
- "version": "19.7.3",
3
+ "version": "19.7.5",
4
4
  "repository": {
5
5
  "url": "git+https://github.com/eglove/eslint-config-ethang.git"
6
6
  },
@@ -28,7 +28,7 @@
28
28
  "eslint-plugin-barrel-files": "^2.1.0",
29
29
  "eslint-plugin-compat": "^6.0.1",
30
30
  "eslint-plugin-depend": "^0.11.0",
31
- "eslint-plugin-exception-handling": "^1.4.2",
31
+ "eslint-plugin-exception-handling": "^1.4.3",
32
32
  "eslint-plugin-jsx-a11y": "^6.10.0",
33
33
  "eslint-plugin-lodash": "^8.0.0",
34
34
  "eslint-plugin-n": "^17.10.3",
@@ -68,7 +68,7 @@
68
68
  "eslint-plugin-barrel-files": "^2.1.0",
69
69
  "eslint-plugin-compat": "^6.0.1",
70
70
  "eslint-plugin-depend": "^0.11.0",
71
- "eslint-plugin-exception-handling": "^1.4.2",
71
+ "eslint-plugin-exception-handling": "^1.4.3",
72
72
  "eslint-plugin-jsx-a11y": "^6.10.0",
73
73
  "eslint-plugin-lodash": "^8.0.0",
74
74
  "eslint-plugin-n": "^17.10.3",
package/setup/eslint.ts CHANGED
@@ -96,6 +96,10 @@ const changedRules = [
96
96
  name: "no-array-constructor",
97
97
  rule: "off",
98
98
  },
99
+ {
100
+ name: "no-dupe-class-members",
101
+ rule: "off",
102
+ },
99
103
  {
100
104
  name: "no-empty-function",
101
105
  rule: "off",
@@ -9,5 +9,4 @@ export const exceptionHandlingRules = genRules(
9
9
  ruleNames,
10
10
  [],
11
11
  "exception-handling",
12
- "off", // TODO fix with https://github.com/Akronae/eslint-plugin-exception-handling/issues/5
13
12
  );
@@ -7,7 +7,22 @@ const ruleNames = Object.keys(getNonDeprecatedRules(stylistic.rules));
7
7
  const customRules = [
8
8
  { name: "array-bracket-newline", rule: ["error", "consistent"] },
9
9
  { name: "array-element-newline", rule: ["error", "consistent"] },
10
- { name: "comma-dangle", rule: ["error", "always-multiline"] },
10
+ {
11
+ name: "comma-dangle",
12
+ rule: [
13
+ "error",
14
+ {
15
+ arrays: "always-multiline",
16
+ objects: "always-multiline",
17
+ imports: "always-multiline",
18
+ exports: "always-multiline",
19
+ functions: "always-multiline",
20
+ enums: "never",
21
+ generics: "never",
22
+ tuples: "never",
23
+ },
24
+ ],
25
+ },
11
26
  { name: "dot-location", rule: ["error", "property"] },
12
27
  { name: "function-call-argument-newline", rule: ["error", "consistent"] },
13
28
  { name: "function-paren-newline", rule: ["error", "consistent"] },