@ethang/eslint-config 18.1.8 → 18.1.9

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/eslint.config.js +6 -0
  2. package/package.json +3 -1
package/eslint.config.js CHANGED
@@ -13,6 +13,7 @@ import barrel from "eslint-plugin-barrel-files";
13
13
  import compat from "eslint-plugin-compat";
14
14
  import lodashConfig from "eslint-plugin-lodash";
15
15
  import tailwind from "eslint-plugin-tailwindcss";
16
+ import { plugin as exception } from "eslint-plugin-exception-handling";
16
17
 
17
18
  export const languageOptions = {
18
19
  parser,
@@ -35,6 +36,7 @@ export default tseslint.config(eslintPluginPrettier, {
35
36
  barrel,
36
37
  compat,
37
38
  depend,
39
+ exception,
38
40
  lodash: lodashConfig,
39
41
  n,
40
42
  perfectionist,
@@ -530,6 +532,10 @@ export default tseslint.config(eslintPluginPrettier, {
530
532
  "@tanstack/query/no-rest-destructuring": "error",
531
533
  "@tanstack/query/stable-query-client": "error",
532
534
 
535
+ "exception/no-unhandled": "error",
536
+ "exception/might-throw": "error",
537
+ "exception/use-error-cause": "error",
538
+
533
539
  "tailwind/classnames-order": "error",
534
540
  "tailwind/enforces-negative-arbitrary-values": "error",
535
541
  "tailwind/enforces-shorthand": "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethang/eslint-config",
3
- "version": "18.1.8",
3
+ "version": "18.1.9",
4
4
  "repository": {
5
5
  "url": "git+https://github.com/eglove/eslint-config-ethang.git"
6
6
  },
@@ -26,6 +26,7 @@
26
26
  "eslint-plugin-barrel-files": "^2.1.0",
27
27
  "eslint-plugin-compat": "^6.0.0",
28
28
  "eslint-plugin-depend": "^0.9.0",
29
+ "eslint-plugin-exception-handling": "^1.3.1",
29
30
  "eslint-plugin-jsx-a11y": "^6.9.0",
30
31
  "eslint-plugin-lodash": "^8.0.0",
31
32
  "eslint-plugin-n": "^17.10.1",
@@ -51,6 +52,7 @@
51
52
  "eslint-plugin-barrel-files": "^2.1.0",
52
53
  "eslint-plugin-compat": "^6.0.0",
53
54
  "eslint-plugin-depend": "^0.9.0",
55
+ "eslint-plugin-exception-handling": "^1.3.1",
54
56
  "eslint-plugin-jsx-a11y": "^6.9.0",
55
57
  "eslint-plugin-lodash": "^8.0.0",
56
58
  "eslint-plugin-n": "^17.10.1",