@ethang/eslint-config 19.8.1 → 19.8.3

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,7 +5,7 @@
5
5
  > [!CAUTION]
6
6
  > Do not use this with Prettier! Styling rules are included.
7
7
 
8
- - 890 errored rules.
8
+ - 887 errored rules.
9
9
  - 289 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
11
  - 113 rules from [sindresorhus/eslint-plugin-unicorn](https://github.com/sindresorhus/eslint-plugin-unicorn)
@@ -20,7 +20,6 @@
20
20
  - 7 rules from [@eslint/markdown](https://github.com/eslint/markdown)
21
21
  - 5 rules from [@tanstack/eslint-plugin-query](https://tanstack.com/query/latest/docs/eslint/eslint-plugin-query)
22
22
  - 4 rules from [eslint-plugin-barrel-files](https://github.com/thepassle/eslint-plugin-barrel-files)
23
- - 3 rules from [exception-handling](https://github.com/Akronae/eslint-plugin-exception-handling)
24
23
  - 2 rules from [@eslint/json](https://github.com/eslint/json)
25
24
  - 1 rule from [eslint-plugin-depend](https://github.com/es-tooling/eslint-plugin-depend/tree/main)
26
25
  - 1 rule from [@cspell/eslint-plugin](https://github.com/streetsidesoftware/cspell/tree/main/packages/cspell-eslint-plugin)
@@ -20,7 +20,6 @@ import { typescriptRules } from "../setup/typescript-eslint.ts";
20
20
  import { unicornRules } from "../setup/unicorn.ts";
21
21
  import { cspellRules } from "../setup/cspell.js";
22
22
  import { tanstackRouterRules } from "../setup/tanstack-router.js";
23
- import { exceptionHandlingRules } from "../setup/exception-handling.js";
24
23
  import { stylisticTsRules } from "../setup/stylistic-ts.js";
25
24
 
26
25
  export const ruleList = [
@@ -114,22 +113,11 @@ export const ruleList = [
114
113
  type: "core",
115
114
  url: "https://github.com/SonarSource/SonarJS/blob/master/packages/jsts/src/rules/README.md",
116
115
  },
117
- {
118
- importString:
119
- 'import { plugin as exceptionHandling } from "eslint-plugin-exception-handling"',
120
- list: exceptionHandlingRules,
121
- name: "exception-handling",
122
- order: 9,
123
- pluginName: "exception-handling",
124
- pluginValue: "exceptionHandling",
125
- type: "core",
126
- url: "https://github.com/Akronae/eslint-plugin-exception-handling",
127
- },
128
116
  {
129
117
  importString: 'import tailwind from "eslint-plugin-tailwindcss";',
130
118
  list: tailwindRules,
131
119
  name: "eslint-plugin-tailwindcss",
132
- order: 10,
120
+ order: 9,
133
121
  pluginName: "tailwind",
134
122
  pluginValue: "tailwind",
135
123
  type: "core",
@@ -139,7 +127,7 @@ export const ruleList = [
139
127
  importString: 'import stylistic from "@stylistic/eslint-plugin";',
140
128
  list: stylisticRules,
141
129
  name: "@stylistic/eslint-plugin",
142
- order: 11,
130
+ order: 10,
143
131
  pluginName: "stylistic",
144
132
  pluginValue: "stylistic",
145
133
  type: "core",
@@ -149,7 +137,7 @@ export const ruleList = [
149
137
  importString: 'import stylisticTs from "@stylistic/eslint-plugin-ts";',
150
138
  list: stylisticTsRules,
151
139
  name: "@stylistic/eslint-plugin-ts",
152
- order: 12,
140
+ order: 11,
153
141
  pluginName: "stylistic-ts",
154
142
  pluginValue: "stylisticTs",
155
143
  type: "core",
@@ -159,7 +147,7 @@ export const ruleList = [
159
147
  importString: 'import perfectionist from "eslint-plugin-perfectionist";',
160
148
  list: perfectionistRules,
161
149
  name: "eslint-plugin-perfectionist",
162
- order: 13,
150
+ order: 12,
163
151
  pluginName: "perfectionist",
164
152
  pluginValue: "perfectionist",
165
153
  type: "core",
@@ -169,7 +157,7 @@ export const ruleList = [
169
157
  importString: 'import tanstackQuery from "@tanstack/eslint-plugin-query";',
170
158
  list: tanstackQueryRules,
171
159
  name: "@tanstack/eslint-plugin-query",
172
- order: 14,
160
+ order: 13,
173
161
  pluginName: "@tanstack/query",
174
162
  pluginValue: "tanstackQuery",
175
163
  type: "core",
@@ -180,7 +168,7 @@ export const ruleList = [
180
168
  'import tanstackRouter from "@tanstack/eslint-plugin-router";',
181
169
  list: tanstackRouterRules,
182
170
  name: "@tanstack/eslint-plugin-router",
183
- order: 15,
171
+ order: 14,
184
172
  pluginName: "@tanstack/router",
185
173
  pluginValue: "tanstackRouter",
186
174
  type: "core",
@@ -190,7 +178,7 @@ export const ruleList = [
190
178
  importString: 'import a11y from "eslint-plugin-jsx-a11y";',
191
179
  list: a11yRules,
192
180
  name: "jsx-a11y",
193
- order: 16,
181
+ order: 15,
194
182
  pluginName: "a11y",
195
183
  pluginValue: "a11y",
196
184
  type: "core",
@@ -200,7 +188,7 @@ export const ruleList = [
200
188
  importString: undefined,
201
189
  list: deprecatedRules,
202
190
  name: "@eslint/js",
203
- order: 17,
191
+ order: 16,
204
192
  pluginName: undefined,
205
193
  pluginValue: undefined,
206
194
  type: "core",
package/eslint.config.js CHANGED
@@ -1,6 +1,5 @@
1
1
  import { fixupPluginRules } from "@eslint/compat";
2
2
  import { ignores, languageOptions } from "./constants.js";
3
- import { plugin as exceptionHandling } from "eslint-plugin-exception-handling";
4
3
  import a11y from "eslint-plugin-jsx-a11y";
5
4
  import barrel from "eslint-plugin-barrel-files";
6
5
  import compat from "eslint-plugin-compat";
@@ -38,7 +37,6 @@ export default tseslint.config(
38
37
  unicorn: unicorn,
39
38
  lodash: lodashConfig,
40
39
  sonar: fixupPluginRules(sonar),
41
- "exception-handling": exceptionHandling,
42
40
  tailwind: tailwind,
43
41
  stylistic: stylistic,
44
42
  "stylistic-ts": stylisticTs,
@@ -934,9 +932,6 @@ export default tseslint.config(
934
932
  "sonar/weak-ssl": "error",
935
933
  "sonar/x-powered-by": "error",
936
934
  "sonar/xml-parser-xxe": "error",
937
- "exception-handling/might-throw": "error",
938
- "exception-handling/no-unhandled": "error",
939
- "exception-handling/use-error-cause": "error",
940
935
  "tailwind/classnames-order": "error",
941
936
  "tailwind/enforces-negative-arbitrary-values": "error",
942
937
  "tailwind/enforces-shorthand": "error",
@@ -1063,7 +1058,7 @@ export default tseslint.config(
1063
1058
  exports: "always-multiline",
1064
1059
  functions: "always-multiline",
1065
1060
  enums: "never",
1066
- generics: "never",
1061
+ generics: "always",
1067
1062
  tuples: "never",
1068
1063
  },
1069
1064
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethang/eslint-config",
3
- "version": "19.8.1",
3
+ "version": "19.8.3",
4
4
  "repository": {
5
5
  "url": "git+https://github.com/eglove/eslint-config-ethang.git"
6
6
  },
@@ -29,7 +29,6 @@
29
29
  "eslint-plugin-barrel-files": "^2.1.0",
30
30
  "eslint-plugin-compat": "^6.0.1",
31
31
  "eslint-plugin-depend": "^0.11.0",
32
- "eslint-plugin-exception-handling": "^1.4.3",
33
32
  "eslint-plugin-jsx-a11y": "^6.10.0",
34
33
  "eslint-plugin-lodash": "^8.0.0",
35
34
  "eslint-plugin-n": "^17.10.3",
@@ -70,7 +69,6 @@
70
69
  "eslint-plugin-barrel-files": "^2.1.0",
71
70
  "eslint-plugin-compat": "^6.0.1",
72
71
  "eslint-plugin-depend": "^0.11.0",
73
- "eslint-plugin-exception-handling": "^1.4.3",
74
72
  "eslint-plugin-jsx-a11y": "^6.10.0",
75
73
  "eslint-plugin-lodash": "^8.0.0",
76
74
  "eslint-plugin-n": "^17.10.3",
@@ -15,7 +15,7 @@ const customRules = [
15
15
  exports: "always-multiline",
16
16
  functions: "always-multiline",
17
17
  enums: "never",
18
- generics: "never",
18
+ generics: "always",
19
19
  tuples: "never",
20
20
  },
21
21
  ],
@@ -1,12 +0,0 @@
1
- import { rules } from "eslint-plugin-exception-handling";
2
- import { EsLintRules, genRules, getNonDeprecatedRules } from "./gen-rules.js";
3
-
4
- const ruleNames = Object.keys(
5
- getNonDeprecatedRules(rules as unknown as EsLintRules),
6
- );
7
-
8
- export const exceptionHandlingRules = genRules(
9
- ruleNames,
10
- [],
11
- "exception-handling",
12
- );