@phaicom/eslint-config 0.3.0 → 0.3.1
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 +2 -2
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -6,7 +6,7 @@ Personal ESLint configuration preset.
|
|
|
6
6
|
- Built on [antfu/eslint-config](https://github.com/antfu/eslint-config)
|
|
7
7
|
- Enforces curly brackets for all blocks
|
|
8
8
|
- Custom rule sets for unicorn, stylistic, and Vue
|
|
9
|
-
- Tailwind support with [eslint-plugin-
|
|
9
|
+
- Tailwind support with [eslint-plugin-better-tailwindcss](https://github.com/schoero/eslint-plugin-better-tailwindcss)
|
|
10
10
|
|
|
11
11
|
## Usage
|
|
12
12
|
|
|
@@ -97,7 +97,7 @@ To enable Tailwind support and enforce consistent class ordering:
|
|
|
97
97
|
|
|
98
98
|
1. Install the required plugin:
|
|
99
99
|
```bash
|
|
100
|
-
pnpm i -D eslint-plugin-
|
|
100
|
+
pnpm i -D eslint-plugin-better-tailwindcss
|
|
101
101
|
```
|
|
102
102
|
|
|
103
103
|
2. Enable Tailwind support in your config:
|
package/dist/index.js
CHANGED
|
@@ -43,7 +43,8 @@ async function tailwind() {
|
|
|
43
43
|
},
|
|
44
44
|
rules: {
|
|
45
45
|
// enable all recommended rules to error
|
|
46
|
-
...pluginTailwind.configs["recommended-error"].rules
|
|
46
|
+
...pluginTailwind.configs["recommended-error"].rules,
|
|
47
|
+
"better-tailwindcss/no-unregistered-classes": "warn"
|
|
47
48
|
}
|
|
48
49
|
}
|
|
49
50
|
];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phaicom/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.1",
|
|
5
5
|
"description": "Phaicom's config based on @antfu/eslint-config",
|
|
6
6
|
"author": "Reawpai Chunsoi <reawpai.chunsoi@gmail.com> (https://github.com/phaicom)",
|
|
7
7
|
"license": "MIT",
|