eslint-plugin-tailwind-variants 2.1.0 → 2.1.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/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.js"],"names":[],"mappings":"AAmBA;;;GAGG;AAEH,4BAA4B;AAC5B,sBADW,aAAa,CA2BtB;;;;;;;;;;;;;;;;;;;;;iBA9BY,OAAO,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE;;AAX9C,6CAA6C;AAC7C,qBADW,OAAO,QAAQ,EAAE,MAAM,CAAC,MAAM,CAOvC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-tailwind-variants",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"description": "ESLint plugin for Tailwind Variants",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eslint",
|
|
@@ -18,6 +18,7 @@
|
|
|
18
18
|
"src",
|
|
19
19
|
"dist"
|
|
20
20
|
],
|
|
21
|
+
"type": "module",
|
|
21
22
|
"main": "src/index.js",
|
|
22
23
|
"types": "dist/index.d.ts",
|
|
23
24
|
"exports": {
|
|
@@ -62,7 +63,7 @@
|
|
|
62
63
|
"eslint": ">9.0.0"
|
|
63
64
|
},
|
|
64
65
|
"engines": {
|
|
65
|
-
"node": ">=
|
|
66
|
+
"node": ">=20.10"
|
|
66
67
|
},
|
|
67
68
|
"packageManager": "pnpm@10.29.3"
|
|
68
69
|
}
|
package/src/index.js
CHANGED
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
import css from "@eslint/css";
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
name as packageName,
|
|
5
|
-
version as packageVersion,
|
|
6
|
-
} from "../package.json";
|
|
3
|
+
import pkg from "../package.json" with { type: "json" };
|
|
7
4
|
|
|
8
5
|
import { rules } from "./rules/index.js";
|
|
9
6
|
|
|
7
|
+
const { name: packageName, version: packageVersion } = pkg;
|
|
8
|
+
|
|
10
9
|
const pluginName = "tailwind-variants";
|
|
11
10
|
|
|
12
11
|
/** @type {import("eslint").ESLint.Plugin} */
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { createRuleVisitors } from "../utils/create-rule-visitors";
|
|
1
|
+
import { createRuleVisitors } from "../utils/create-rule-visitors.js";
|
|
2
2
|
import {
|
|
3
3
|
getBindClassExpression,
|
|
4
4
|
isValidDirective,
|
|
5
|
-
} from "../utils/get-bind-class-expression";
|
|
5
|
+
} from "../utils/get-bind-class-expression.js";
|
|
6
6
|
|
|
7
7
|
export const MESSAGE_IDS = {
|
|
8
8
|
limitedInlineClasses: "limitedInlineClasses",
|