@ethang/eslint-config 18.1.7 → 18.1.8
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 +11 -0
- package/eslint.config.js +11 -2
- package/package.json +3 -1
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,7 @@ 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";
|
|
15
16
|
|
|
16
17
|
export const languageOptions = {
|
|
17
18
|
parser,
|
|
@@ -28,6 +29,7 @@ export default tseslint.config(eslintPluginPrettier, {
|
|
|
28
29
|
ignores,
|
|
29
30
|
languageOptions,
|
|
30
31
|
plugins: {
|
|
32
|
+
"@tanstack/query": tanstack,
|
|
31
33
|
"@typescript-eslint": tseslint.plugin,
|
|
32
34
|
a11y,
|
|
33
35
|
barrel,
|
|
@@ -37,8 +39,8 @@ export default tseslint.config(eslintPluginPrettier, {
|
|
|
37
39
|
n,
|
|
38
40
|
perfectionist,
|
|
39
41
|
sonar,
|
|
42
|
+
tailwind,
|
|
40
43
|
unicorn,
|
|
41
|
-
"@tanstack/query": tanstack,
|
|
42
44
|
},
|
|
43
45
|
rules: {
|
|
44
46
|
"depend/ban-dependencies": ["error", { allowed: ["lodash"] }],
|
|
@@ -525,10 +527,17 @@ export default tseslint.config(eslintPluginPrettier, {
|
|
|
525
527
|
"sonar/prefer-while": "error",
|
|
526
528
|
|
|
527
529
|
"@tanstack/query/exhaustive-deps": "error",
|
|
528
|
-
// "@tanstack/query/no-deprecated-options": "error", // not yet implemented
|
|
529
530
|
"@tanstack/query/no-rest-destructuring": "error",
|
|
530
531
|
"@tanstack/query/stable-query-client": "error",
|
|
531
532
|
|
|
533
|
+
"tailwind/classnames-order": "error",
|
|
534
|
+
"tailwind/enforces-negative-arbitrary-values": "error",
|
|
535
|
+
"tailwind/enforces-shorthand": "error",
|
|
536
|
+
"tailwind/migration-from-tailwind-2": "error",
|
|
537
|
+
"tailwind/no-arbitrary-value": "error",
|
|
538
|
+
"tailwind/no-contradicting-classname": "error",
|
|
539
|
+
"tailwind/no-unnecessary-arbitrary-value": "error",
|
|
540
|
+
|
|
532
541
|
"perfectionist/sort-array-includes": "error",
|
|
533
542
|
"perfectionist/sort-astro-attributes": [
|
|
534
543
|
"error",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ethang/eslint-config",
|
|
3
|
-
"version": "18.1.
|
|
3
|
+
"version": "18.1.8",
|
|
4
4
|
"repository": {
|
|
5
5
|
"url": "git+https://github.com/eglove/eslint-config-ethang.git"
|
|
6
6
|
},
|
|
@@ -34,6 +34,7 @@
|
|
|
34
34
|
"eslint-plugin-react": "^7.35.0",
|
|
35
35
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
36
36
|
"eslint-plugin-sonarjs": "1.0.4",
|
|
37
|
+
"eslint-plugin-tailwindcss": "^3.17.4",
|
|
37
38
|
"eslint-plugin-unicorn": "^55.0.0",
|
|
38
39
|
"prettier": "^3.3.3",
|
|
39
40
|
"typescript": "^5.5.4",
|
|
@@ -58,6 +59,7 @@
|
|
|
58
59
|
"eslint-plugin-react": "^7.35.0",
|
|
59
60
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
60
61
|
"eslint-plugin-sonarjs": "1.0.4",
|
|
62
|
+
"eslint-plugin-tailwindcss": "^3.17.4",
|
|
61
63
|
"eslint-plugin-unicorn": "^55.0.0",
|
|
62
64
|
"prettier": "^3.3.3",
|
|
63
65
|
"typescript": "^5.5.4",
|