eslint-plugin-tailwind-variants 2.1.1 → 2.1.3

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.
Files changed (28) hide show
  1. package/README.md +5 -3
  2. package/dist/index.d.ts +14 -0
  3. package/dist/index.d.ts.map +1 -0
  4. package/dist/rules/index.d.ts.map +1 -0
  5. package/dist/rules/limited-inline-classes.d.ts.map +1 -0
  6. package/dist/rules/require-variants-call-styles-name.d.ts.map +1 -0
  7. package/dist/rules/require-variants-suffix.d.ts.map +1 -0
  8. package/dist/rules/sort-custom-properties.d.ts.map +1 -0
  9. package/dist/utils/create-rule-visitors.d.ts.map +1 -0
  10. package/dist/utils/get-bind-class-expression.d.ts.map +1 -0
  11. package/package.json +1 -1
  12. package/src/index.js +4 -2
  13. package/dist/src/index.d.ts +0 -31
  14. package/dist/src/index.d.ts.map +0 -1
  15. package/dist/src/rules/index.d.ts.map +0 -1
  16. package/dist/src/rules/limited-inline-classes.d.ts.map +0 -1
  17. package/dist/src/rules/require-variants-call-styles-name.d.ts.map +0 -1
  18. package/dist/src/rules/require-variants-suffix.d.ts.map +0 -1
  19. package/dist/src/rules/sort-custom-properties.d.ts.map +0 -1
  20. package/dist/src/utils/create-rule-visitors.d.ts.map +0 -1
  21. package/dist/src/utils/get-bind-class-expression.d.ts.map +0 -1
  22. /package/dist/{src/rules → rules}/index.d.ts +0 -0
  23. /package/dist/{src/rules → rules}/limited-inline-classes.d.ts +0 -0
  24. /package/dist/{src/rules → rules}/require-variants-call-styles-name.d.ts +0 -0
  25. /package/dist/{src/rules → rules}/require-variants-suffix.d.ts +0 -0
  26. /package/dist/{src/rules → rules}/sort-custom-properties.d.ts +0 -0
  27. /package/dist/{src/utils → utils}/create-rule-visitors.d.ts +0 -0
  28. /package/dist/{src/utils → utils}/get-bind-class-expression.d.ts +0 -0
package/README.md CHANGED
@@ -42,11 +42,13 @@ npm i -D vue-eslint-parser
42
42
 
43
43
  ```js
44
44
  // eslint.config.{js|ts)
45
-
46
- // ...
47
45
  import tailwindVariants from "eslint-plugin-tailwind-variants";
48
46
 
49
- export default defineConfig([...tailwindVariants.configs.recommended]);
47
+ export default defineConfig([
48
+ {
49
+ extends: [tailwindVariants.configs.recommended],
50
+ },
51
+ ]);
50
52
  ```
51
53
 
52
54
  ### Editor setup
@@ -0,0 +1,14 @@
1
+ export default defaultExport;
2
+ export type PluginConfigs = {
3
+ /**
4
+ * Recommended ESLint configurations for this plugin.
5
+ */
6
+ recommended: import("eslint").Linter.Config[];
7
+ };
8
+ /** @type {import("eslint").ESLint.Plugin} */
9
+ export const plugin: import("eslint").ESLint.Plugin;
10
+ /** @type {import("eslint").ESLint.Plugin & { configs: PluginConfigs }} */
11
+ declare const defaultExport: import("eslint").ESLint.Plugin & {
12
+ configs: PluginConfigs;
13
+ };
14
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.js"],"names":[],"mappings":";;;;;iBAqBc,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"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/rules/index.js"],"names":[],"mappings":"AAKA;;;;;EAKE"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"limited-inline-classes.d.ts","sourceRoot":"","sources":["../../src/rules/limited-inline-classes.js"],"names":[],"mappings":";;;;AAWA,yEAAyE;AAEzE;;;;GAIG;AAEH,+CAA+C;AAC/C,mBADW,OAAO,QAAQ,EAAE,IAAI,CAAC,UAAU,CAuDzC;yBA/DY,CAAA,OAAO,WAAW,EAAC,MAAM,OAAO,WAAW,CAAC;;;;;;;;;;;;;;;;;;UA4E5C,OAAO,QAAQ,EAAE,IAAI,GAClC,OAAU,mBAAmB,EAAE,GAAG,CAAC,UAAU;;;;aAChC,OAAO,QAAQ,EAAE,IAAI,CAAC,WAAW;;;;sBACjC,MAAM"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"require-variants-call-styles-name.d.ts","sourceRoot":"","sources":["../../src/rules/require-variants-call-styles-name.js"],"names":[],"mappings":";;;;AAKA,yEAAyE;AAEzE;;;GAGG;AAEH,+CAA+C;AAC/C,mBADW,OAAO,QAAQ,EAAE,IAAI,CAAC,UAAU,CAoFzC;yBA3FY,CAAA,OAAO,WAAW,EAAC,MAAM,OAAO,WAAW,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"require-variants-suffix.d.ts","sourceRoot":"","sources":["../../src/rules/require-variants-suffix.js"],"names":[],"mappings":";;;;AAKA,yEAAyE;AAEzE;;;GAGG;AAEH,+CAA+C;AAC/C,mBADW,OAAO,QAAQ,EAAE,IAAI,CAAC,UAAU,CA2CzC;yBAlDY,CAAA,OAAO,WAAW,EAAC,MAAM,OAAO,WAAW,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sort-custom-properties.d.ts","sourceRoot":"","sources":["../../src/rules/sort-custom-properties.js"],"names":[],"mappings":";;;;;;AAgCA,yEAAyE;AAEzE;;;;GAIG;AAEH,+CAA+C;AAC/C,mBADW,OAAO,QAAQ,EAAE,IAAI,CAAC,UAAU,CA6EzC;;;;;UAnHY,OAAO,QAAQ,EAAE,IAAI;;;;gBACrB,MAAM;;;;cACN,MAAM;;yBA4BN,CAAA,OAAO,WAAW,EAAC,MAAM,OAAO,WAAW,CAAC;;;;;;;;;;;;;;;4BAyF5C,cAAc,EAAE;;;;YAChB,cAAc,EAAE;;;;4BAChB,OAAO;;;;gBACP,OAAO,QAAQ,EAAE,UAAU;;;;;;gBAK3B,cAAc,EAAE,EAAE;;;;4BAClB,OAAO;;;;WACP,MAAM,EAAE;;;;gBACR,OAAO,QAAQ,EAAE,UAAU;;;;aAC3B,OAAO,QAAQ,EAAE,IAAI,CAAC,WAAW;;;;;0CAwEpC,MAAM,KACJ,MAAM;oCAmNR,OAAO,QAAQ,EAAE,IAAI,CAAC,SAAS,KAC7B,OAAO,QAAQ,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI;0CAgJpC,OAAO,QAAQ,EAAE,IAAI,KACnB,IAAI"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"create-rule-visitors.d.ts","sourceRoot":"","sources":["../../src/utils/create-rule-visitors.js"],"names":[],"mappings":"AAQO,4CALI,OAAO,QAAQ,EAAE,IAAI,CAAC,WAAW,mBACjC,OAAO,QAAQ,EAAE,IAAI,CAAC,YAAY,iBAClC,OAAO,QAAQ,EAAE,IAAI,CAAC,YAAY,GAChC,OAAO,QAAQ,EAAE,IAAI,CAAC,YAAY,CAqB9C"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-bind-class-expression.d.ts","sourceRoot":"","sources":["../../src/utils/get-bind-class-expression.js"],"names":[],"mappings":"AAOO,4CAJI,OAAO,mBAAmB,EAAE,GAAG,CAAC,aAAa,SAC7C,OAAO,mBAAmB,EAAE,GAAG,CAAC,QAAQ,GAAG,OAAO,mBAAmB,EAAE,GAAG,CAAC,oBAAoB,GAAG,IAAI,GACpG,OAAO,mBAAmB,EAAE,GAAG,CAAC,oBAAoB,GAAG,SAAS,CAY5E;AAOM,uCAHI,OAAO,mBAAmB,EAAE,GAAG,CAAC,UAAU,GACxC,OAAO,CAGiD"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eslint-plugin-tailwind-variants",
3
- "version": "2.1.1",
3
+ "version": "2.1.3",
4
4
  "description": "ESLint plugin for Tailwind Variants",
5
5
  "keywords": [
6
6
  "eslint",
package/src/index.js CHANGED
@@ -23,7 +23,7 @@ const plugin = {
23
23
  */
24
24
 
25
25
  /** @type {PluginConfigs} */
26
- export const configs = {
26
+ const configs = {
27
27
  recommended: [
28
28
  {
29
29
  plugins: {
@@ -54,8 +54,10 @@ export const configs = {
54
54
  export { plugin };
55
55
 
56
56
  /** @type {import("eslint").ESLint.Plugin & { configs: PluginConfigs }} */
57
- export default {
57
+ const defaultExport = {
58
58
  configs,
59
59
  meta: plugin.meta,
60
60
  rules,
61
61
  };
62
+
63
+ export default defaultExport;
@@ -1,31 +0,0 @@
1
- /**
2
- * @typedef {object} PluginConfigs
3
- * @property {import("eslint").Linter.Config[]} recommended Recommended ESLint configurations for this plugin.
4
- */
5
- /** @type {PluginConfigs} */
6
- export const configs: PluginConfigs;
7
- declare const _default: {
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;
23
- export type PluginConfigs = {
24
- /**
25
- * Recommended ESLint configurations for this plugin.
26
- */
27
- recommended: import("eslint").Linter.Config[];
28
- };
29
- /** @type {import("eslint").ESLint.Plugin} */
30
- export const plugin: import("eslint").ESLint.Plugin;
31
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
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"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/rules/index.js"],"names":[],"mappings":"AAKA;;;;;EAKE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"limited-inline-classes.d.ts","sourceRoot":"","sources":["../../../src/rules/limited-inline-classes.js"],"names":[],"mappings":";;;;AAWA,yEAAyE;AAEzE;;;;GAIG;AAEH,+CAA+C;AAC/C,mBADW,OAAO,QAAQ,EAAE,IAAI,CAAC,UAAU,CAuDzC;yBA/DY,CAAA,OAAO,WAAW,EAAC,MAAM,OAAO,WAAW,CAAC;;;;;;;;;;;;;;;;;;UA4E5C,OAAO,QAAQ,EAAE,IAAI,GAClC,OAAU,mBAAmB,EAAE,GAAG,CAAC,UAAU;;;;aAChC,OAAO,QAAQ,EAAE,IAAI,CAAC,WAAW;;;;sBACjC,MAAM"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"require-variants-call-styles-name.d.ts","sourceRoot":"","sources":["../../../src/rules/require-variants-call-styles-name.js"],"names":[],"mappings":";;;;AAKA,yEAAyE;AAEzE;;;GAGG;AAEH,+CAA+C;AAC/C,mBADW,OAAO,QAAQ,EAAE,IAAI,CAAC,UAAU,CAoFzC;yBA3FY,CAAA,OAAO,WAAW,EAAC,MAAM,OAAO,WAAW,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"require-variants-suffix.d.ts","sourceRoot":"","sources":["../../../src/rules/require-variants-suffix.js"],"names":[],"mappings":";;;;AAKA,yEAAyE;AAEzE;;;GAGG;AAEH,+CAA+C;AAC/C,mBADW,OAAO,QAAQ,EAAE,IAAI,CAAC,UAAU,CA2CzC;yBAlDY,CAAA,OAAO,WAAW,EAAC,MAAM,OAAO,WAAW,CAAC"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"sort-custom-properties.d.ts","sourceRoot":"","sources":["../../../src/rules/sort-custom-properties.js"],"names":[],"mappings":";;;;;;AAgCA,yEAAyE;AAEzE;;;;GAIG;AAEH,+CAA+C;AAC/C,mBADW,OAAO,QAAQ,EAAE,IAAI,CAAC,UAAU,CA6EzC;;;;;UAnHY,OAAO,QAAQ,EAAE,IAAI;;;;gBACrB,MAAM;;;;cACN,MAAM;;yBA4BN,CAAA,OAAO,WAAW,EAAC,MAAM,OAAO,WAAW,CAAC;;;;;;;;;;;;;;;4BAyF5C,cAAc,EAAE;;;;YAChB,cAAc,EAAE;;;;4BAChB,OAAO;;;;gBACP,OAAO,QAAQ,EAAE,UAAU;;;;;;gBAK3B,cAAc,EAAE,EAAE;;;;4BAClB,OAAO;;;;WACP,MAAM,EAAE;;;;gBACR,OAAO,QAAQ,EAAE,UAAU;;;;aAC3B,OAAO,QAAQ,EAAE,IAAI,CAAC,WAAW;;;;;0CAwEpC,MAAM,KACJ,MAAM;oCAmNR,OAAO,QAAQ,EAAE,IAAI,CAAC,SAAS,KAC7B,OAAO,QAAQ,EAAE,IAAI,CAAC,GAAG,EAAE,GAAG,IAAI;0CAgJpC,OAAO,QAAQ,EAAE,IAAI,KACnB,IAAI"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"create-rule-visitors.d.ts","sourceRoot":"","sources":["../../../src/utils/create-rule-visitors.js"],"names":[],"mappings":"AAQO,4CALI,OAAO,QAAQ,EAAE,IAAI,CAAC,WAAW,mBACjC,OAAO,QAAQ,EAAE,IAAI,CAAC,YAAY,iBAClC,OAAO,QAAQ,EAAE,IAAI,CAAC,YAAY,GAChC,OAAO,QAAQ,EAAE,IAAI,CAAC,YAAY,CAqB9C"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-bind-class-expression.d.ts","sourceRoot":"","sources":["../../../src/utils/get-bind-class-expression.js"],"names":[],"mappings":"AAOO,4CAJI,OAAO,mBAAmB,EAAE,GAAG,CAAC,aAAa,SAC7C,OAAO,mBAAmB,EAAE,GAAG,CAAC,QAAQ,GAAG,OAAO,mBAAmB,EAAE,GAAG,CAAC,oBAAoB,GAAG,IAAI,GACpG,OAAO,mBAAmB,EAAE,GAAG,CAAC,oBAAoB,GAAG,SAAS,CAY5E;AAOM,uCAHI,OAAO,mBAAmB,EAAE,GAAG,CAAC,UAAU,GACxC,OAAO,CAGiD"}
File without changes