eslint-plugin-tailwind-variants 2.1.0 → 2.1.2
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
CHANGED
|
@@ -4,22 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
/** @type {PluginConfigs} */
|
|
6
6
|
export const configs: PluginConfigs;
|
|
7
|
-
|
|
8
|
-
configs: PluginConfigs;
|
|
9
|
-
meta: ({
|
|
10
|
-
name?: string | undefined;
|
|
11
|
-
version?: string | undefined;
|
|
12
|
-
} & {
|
|
13
|
-
namespace?: string | undefined;
|
|
14
|
-
}) | undefined;
|
|
15
|
-
rules: {
|
|
16
|
-
"limited-inline-classes": import("eslint").Rule.RuleModule;
|
|
17
|
-
"require-variants-call-styles-name": import("eslint").Rule.RuleModule;
|
|
18
|
-
"require-variants-suffix": import("eslint").Rule.RuleModule;
|
|
19
|
-
"sort-custom-properties": import("eslint").Rule.RuleModule;
|
|
20
|
-
};
|
|
21
|
-
};
|
|
22
|
-
export default _default;
|
|
7
|
+
export default defaultExport;
|
|
23
8
|
export type PluginConfigs = {
|
|
24
9
|
/**
|
|
25
10
|
* Recommended ESLint configurations for this plugin.
|
|
@@ -28,4 +13,8 @@ export type PluginConfigs = {
|
|
|
28
13
|
};
|
|
29
14
|
/** @type {import("eslint").ESLint.Plugin} */
|
|
30
15
|
export const plugin: import("eslint").ESLint.Plugin;
|
|
16
|
+
/** @type {import("eslint").ESLint.Plugin & { configs: PluginConfigs }} */
|
|
17
|
+
declare const defaultExport: import("eslint").ESLint.Plugin & {
|
|
18
|
+
configs: PluginConfigs;
|
|
19
|
+
};
|
|
31
20
|
//# sourceMappingURL=index.d.ts.map
|
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;AAsCF,0EAA0E;AAC1E,6BADW,OAAO,QAAQ,EAAE,MAAM,CAAC,MAAM,GAAG;IAAE,OAAO,EAAE,aAAa,CAAA;CAAE,CAKpE"}
|
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.2",
|
|
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} */
|
|
@@ -55,8 +54,10 @@ export const configs = {
|
|
|
55
54
|
export { plugin };
|
|
56
55
|
|
|
57
56
|
/** @type {import("eslint").ESLint.Plugin & { configs: PluginConfigs }} */
|
|
58
|
-
|
|
57
|
+
const defaultExport = {
|
|
59
58
|
configs,
|
|
60
59
|
meta: plugin.meta,
|
|
61
60
|
rules,
|
|
62
61
|
};
|
|
62
|
+
|
|
63
|
+
export default defaultExport;
|
|
@@ -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",
|