eslint-plugin-tailwind-variants 2.0.0 → 2.0.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 +10 -0
- package/dist/index.js +3 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -47,6 +47,16 @@ export default defineConfig([
|
|
|
47
47
|
]);
|
|
48
48
|
```
|
|
49
49
|
|
|
50
|
+
### Editor setup
|
|
51
|
+
|
|
52
|
+
If you are using the ESLint plugin in VS Code add the following to your `settings.json` to enable `css` linting:
|
|
53
|
+
|
|
54
|
+
```json
|
|
55
|
+
{
|
|
56
|
+
"eslint.validate": ["css"]
|
|
57
|
+
}
|
|
58
|
+
```
|
|
59
|
+
|
|
50
60
|
### Rules
|
|
51
61
|
|
|
52
62
|
| Name | Description | `recommended` | autofix |
|
package/dist/index.js
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import css from "@eslint/css";
|
|
1
2
|
import { name as packageName, version as packageVersion, } from "../package.json";
|
|
2
3
|
import { rules } from "./rules/index.js";
|
|
3
4
|
const pluginName = "tailwind-variants";
|
|
@@ -22,6 +23,8 @@ export const configs = {
|
|
|
22
23
|
},
|
|
23
24
|
{
|
|
24
25
|
files: ["**/*.css"],
|
|
26
|
+
language: "css/css",
|
|
27
|
+
plugins: { css },
|
|
25
28
|
rules: {
|
|
26
29
|
[`${pluginName}/sort-custom-properties`]: [
|
|
27
30
|
"error",
|