@ethang/eslint-config 18.1.7 → 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.
package/README.md CHANGED
@@ -62,3 +62,14 @@ export default tseslint.config(...config, ...astroConfig, ...reactConfig, {
62
62
  "lint:fix": "eslint . --fix",
63
63
  }
64
64
  ```
65
+
66
+ ** Browserslist **
67
+
68
+ This config will also lint for browserslist features. Make sure to set this in package.json. [More info.](https://github.com/browserslist/browserslist)
69
+
70
+ ```json
71
+ "browserslist": [
72
+ "defaults and fully supports es6-module",
73
+ "maintained node versions"
74
+ ]
75
+ ```
package/eslint.config.js CHANGED
@@ -12,6 +12,8 @@ import depend from "eslint-plugin-depend";
12
12
  import barrel from "eslint-plugin-barrel-files";
13
13
  import compat from "eslint-plugin-compat";
14
14
  import lodashConfig from "eslint-plugin-lodash";
15
+ import tailwind from "eslint-plugin-tailwindcss";
16
+ import { plugin as exception } from "eslint-plugin-exception-handling";
15
17
 
16
18
  export const languageOptions = {
17
19
  parser,
@@ -28,17 +30,19 @@ export default tseslint.config(eslintPluginPrettier, {
28
30
  ignores,
29
31
  languageOptions,
30
32
  plugins: {
33
+ "@tanstack/query": tanstack,
31
34
  "@typescript-eslint": tseslint.plugin,
32
35
  a11y,
33
36
  barrel,
34
37
  compat,
35
38
  depend,
39
+ exception,
36
40
  lodash: lodashConfig,
37
41
  n,
38
42
  perfectionist,
39
43
  sonar,
44
+ tailwind,
40
45
  unicorn,
41
- "@tanstack/query": tanstack,
42
46
  },
43
47
  rules: {
44
48
  "depend/ban-dependencies": ["error", { allowed: ["lodash"] }],
@@ -525,10 +529,21 @@ export default tseslint.config(eslintPluginPrettier, {
525
529
  "sonar/prefer-while": "error",
526
530
 
527
531
  "@tanstack/query/exhaustive-deps": "error",
528
- // "@tanstack/query/no-deprecated-options": "error", // not yet implemented
529
532
  "@tanstack/query/no-rest-destructuring": "error",
530
533
  "@tanstack/query/stable-query-client": "error",
531
534
 
535
+ "exception/no-unhandled": "error",
536
+ "exception/might-throw": "error",
537
+ "exception/use-error-cause": "error",
538
+
539
+ "tailwind/classnames-order": "error",
540
+ "tailwind/enforces-negative-arbitrary-values": "error",
541
+ "tailwind/enforces-shorthand": "error",
542
+ "tailwind/migration-from-tailwind-2": "error",
543
+ "tailwind/no-arbitrary-value": "error",
544
+ "tailwind/no-contradicting-classname": "error",
545
+ "tailwind/no-unnecessary-arbitrary-value": "error",
546
+
532
547
  "perfectionist/sort-array-includes": "error",
533
548
  "perfectionist/sort-astro-attributes": [
534
549
  "error",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ethang/eslint-config",
3
- "version": "18.1.7",
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",
@@ -34,6 +35,7 @@
34
35
  "eslint-plugin-react": "^7.35.0",
35
36
  "eslint-plugin-react-hooks": "^4.6.2",
36
37
  "eslint-plugin-sonarjs": "1.0.4",
38
+ "eslint-plugin-tailwindcss": "^3.17.4",
37
39
  "eslint-plugin-unicorn": "^55.0.0",
38
40
  "prettier": "^3.3.3",
39
41
  "typescript": "^5.5.4",
@@ -50,6 +52,7 @@
50
52
  "eslint-plugin-barrel-files": "^2.1.0",
51
53
  "eslint-plugin-compat": "^6.0.0",
52
54
  "eslint-plugin-depend": "^0.9.0",
55
+ "eslint-plugin-exception-handling": "^1.3.1",
53
56
  "eslint-plugin-jsx-a11y": "^6.9.0",
54
57
  "eslint-plugin-lodash": "^8.0.0",
55
58
  "eslint-plugin-n": "^17.10.1",
@@ -58,6 +61,7 @@
58
61
  "eslint-plugin-react": "^7.35.0",
59
62
  "eslint-plugin-react-hooks": "^4.6.2",
60
63
  "eslint-plugin-sonarjs": "1.0.4",
64
+ "eslint-plugin-tailwindcss": "^3.17.4",
61
65
  "eslint-plugin-unicorn": "^55.0.0",
62
66
  "prettier": "^3.3.3",
63
67
  "typescript": "^5.5.4",