eslint-plugin-tailwind-variants 1.0.0 → 1.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 +3 -1
- package/dist/index.d.ts +10 -27
- package/dist/index.js +15 -12
- package/dist/rules/index.d.ts +2 -19
- package/dist/rules/index.js +1 -0
- package/package.json +2 -5
package/README.md
CHANGED
|
@@ -5,7 +5,9 @@
|
|
|
5
5
|
<h1 align="center">eslint-plugin-tailwind-variants</h1>
|
|
6
6
|
|
|
7
7
|
<div align="center">
|
|
8
|
-
<img alt="GitHub License
|
|
8
|
+
<img alt="GitHub License" src="https://img.shields.io/github/license/domingasp/eslint-plugin-tailwind-variants?color=615fff" />
|
|
9
|
+
<img alt="NPM Version" src="https://img.shields.io/npm/v/eslint-plugin-tailwind-variants?color=615fff" />
|
|
10
|
+
<img alt="NPM Monthly Downloads" src="https://img.shields.io/npm/dm/eslint-plugin-tailwind-variants?color=615fff" />
|
|
9
11
|
</div>
|
|
10
12
|
|
|
11
13
|
<br />
|
package/dist/index.d.ts
CHANGED
|
@@ -1,28 +1,11 @@
|
|
|
1
|
-
import { Linter } from "
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
meta: {
|
|
5
|
-
name: string;
|
|
6
|
-
namespace: string;
|
|
7
|
-
version: string;
|
|
8
|
-
};
|
|
9
|
-
rules: {
|
|
10
|
-
"limited-inline-classes": import("@typescript-eslint/utils/ts-eslint").RuleModule<"limitedInlineClasses" | "noCnInClassName", [{
|
|
11
|
-
directoryPattern?: string;
|
|
12
|
-
maxInlineClasses?: number;
|
|
13
|
-
}], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
14
|
-
name: string;
|
|
15
|
-
};
|
|
16
|
-
"require-variants-call-styles-name": import("@typescript-eslint/utils/ts-eslint").RuleModule<"requireVariantsCallStylesName", [{
|
|
17
|
-
name?: string;
|
|
18
|
-
}], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
19
|
-
name: string;
|
|
20
|
-
};
|
|
21
|
-
"require-variants-suffix": import("@typescript-eslint/utils/ts-eslint").RuleModule<"requireVariantsSuffix", [{
|
|
22
|
-
suffix?: string;
|
|
23
|
-
}], unknown, import("@typescript-eslint/utils/ts-eslint").RuleListener> & {
|
|
24
|
-
name: string;
|
|
25
|
-
};
|
|
26
|
-
};
|
|
1
|
+
import { ESLint, Linter } from "eslint";
|
|
2
|
+
type PluginConfigs = {
|
|
3
|
+
recommended: Linter.Config;
|
|
27
4
|
};
|
|
28
|
-
|
|
5
|
+
declare const plugin: ESLint.Plugin;
|
|
6
|
+
export declare const configs: PluginConfigs;
|
|
7
|
+
export { plugin };
|
|
8
|
+
declare const _default: ESLint.Plugin & {
|
|
9
|
+
configs: PluginConfigs;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
package/dist/index.js
CHANGED
|
@@ -1,24 +1,27 @@
|
|
|
1
|
+
import { name as packageName, version as packageVersion, } from "../package.json";
|
|
1
2
|
import { rules } from "./rules/index.js";
|
|
3
|
+
const pluginName = "tailwind-variants";
|
|
2
4
|
const plugin = {
|
|
3
|
-
// Plugin type expects Config rather than ConfigType
|
|
4
|
-
configs: {},
|
|
5
5
|
meta: {
|
|
6
|
-
name:
|
|
7
|
-
|
|
8
|
-
version: "0.1.0",
|
|
6
|
+
name: packageName,
|
|
7
|
+
version: packageVersion,
|
|
9
8
|
},
|
|
10
9
|
rules,
|
|
11
10
|
};
|
|
12
|
-
|
|
11
|
+
export const configs = {
|
|
13
12
|
recommended: {
|
|
14
13
|
plugins: {
|
|
15
|
-
|
|
14
|
+
[pluginName]: plugin,
|
|
16
15
|
},
|
|
17
16
|
rules: {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
[`${pluginName}/limited-inline-classes`]: "error",
|
|
18
|
+
[`${pluginName}/require-variants-call-styles-name`]: "error",
|
|
19
|
+
[`${pluginName}/require-variants-suffix`]: "error",
|
|
21
20
|
},
|
|
22
21
|
},
|
|
23
|
-
}
|
|
24
|
-
export
|
|
22
|
+
};
|
|
23
|
+
export { plugin };
|
|
24
|
+
export default {
|
|
25
|
+
...plugin,
|
|
26
|
+
configs,
|
|
27
|
+
};
|
package/dist/rules/index.d.ts
CHANGED
|
@@ -1,19 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const rules:
|
|
3
|
-
"limited-inline-classes": TSESLint.RuleModule<"limitedInlineClasses" | "noCnInClassName", [{
|
|
4
|
-
directoryPattern?: string;
|
|
5
|
-
maxInlineClasses?: number;
|
|
6
|
-
}], unknown, TSESLint.RuleListener> & {
|
|
7
|
-
name: string;
|
|
8
|
-
};
|
|
9
|
-
"require-variants-call-styles-name": TSESLint.RuleModule<"requireVariantsCallStylesName", [{
|
|
10
|
-
name?: string;
|
|
11
|
-
}], unknown, TSESLint.RuleListener> & {
|
|
12
|
-
name: string;
|
|
13
|
-
};
|
|
14
|
-
"require-variants-suffix": TSESLint.RuleModule<"requireVariantsSuffix", [{
|
|
15
|
-
suffix?: string;
|
|
16
|
-
}], unknown, TSESLint.RuleListener> & {
|
|
17
|
-
name: string;
|
|
18
|
-
};
|
|
19
|
-
};
|
|
1
|
+
import { ESLint } from "eslint";
|
|
2
|
+
export declare const rules: ESLint.Plugin["rules"];
|
package/dist/rules/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "eslint-plugin-tailwind-variants",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.1",
|
|
4
4
|
"description": "ESLint plugin for Tailwind Variants",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -38,9 +38,7 @@
|
|
|
38
38
|
"node": ">=18"
|
|
39
39
|
},
|
|
40
40
|
"peerDependencies": {
|
|
41
|
-
"
|
|
42
|
-
"eslint": ">9.0.0",
|
|
43
|
-
"vue-eslint-parser": "^9.4.0"
|
|
41
|
+
"eslint": ">9.0.0"
|
|
44
42
|
},
|
|
45
43
|
"dependencies": {
|
|
46
44
|
"@typescript-eslint/utils": "^8.51.0"
|
|
@@ -50,7 +48,6 @@
|
|
|
50
48
|
"@commitlint/config-conventional": "^20.3.0",
|
|
51
49
|
"@eslint/js": "^9.39.2",
|
|
52
50
|
"@types/node": "^25.0.3",
|
|
53
|
-
"@typescript-eslint/parser": "^8.51.0",
|
|
54
51
|
"@typescript-eslint/rule-tester": "^8.51.0",
|
|
55
52
|
"eslint": "^9.39.2",
|
|
56
53
|
"eslint-plugin-perfectionist": "^5.2.0",
|