@schoero/configs 1.1.1 → 1.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.
Files changed (2) hide show
  1. package/eslint/tailwind.js +12 -15
  2. package/package.json +2 -3
@@ -4,17 +4,6 @@ import { MatcherType } from "eslint-plugin-readable-tailwind/api/types";
4
4
  import eslintPluginTailwindcss from "eslint-plugin-tailwindcss";
5
5
 
6
6
 
7
- const tailwindCssVariables = [
8
- ...getDefaultVariables(),
9
- [
10
- "variants", [
11
- {
12
- match: MatcherType.ObjectValue
13
- }
14
- ]
15
- ]
16
- ];
17
-
18
7
  const tailwindOptions = {
19
8
  callees: ["twMerge", "twJoin", "cn", "cnv", "cva"]
20
9
  };
@@ -32,10 +21,18 @@ export const tailwind = [
32
21
  "eslint-plugin-tailwindcss/enforces-shorthand": ["warn", tailwindOptions],
33
22
  "eslint-plugin-tailwindcss/no-contradicting-classname": ["warn", tailwindOptions],
34
23
 
35
- "eslint-plugin-readable-tailwind/multiline": ["warn", { printWidth: 119, group: "newLine", variables: tailwindCssVariables }],
36
- "eslint-plugin-readable-tailwind/no-unnecessary-whitespace": ["warn", { variables: tailwindCssVariables }],
37
- "eslint-plugin-readable-tailwind/sort-classes": ["warn", { variables: tailwindCssVariables }],
38
- "eslint-plugin-readable-tailwind/no-duplicate-classes": ["warn", { variables: tailwindCssVariables }]
24
+ "eslint-plugin-readable-tailwind/multiline": ["warn", { printWidth: 119, group: "newLine" }],
25
+ "eslint-plugin-readable-tailwind/no-unnecessary-whitespace": "warn",
26
+ "eslint-plugin-readable-tailwind/sort-classes": "warn",
27
+ "eslint-plugin-readable-tailwind/no-duplicate-classes": "warn"
28
+ },
29
+ settings: {
30
+ "eslint-plugin-readable-tailwind": {
31
+ variables: [
32
+ ...getDefaultVariables(),
33
+ ["variants", [{ match: MatcherType.ObjectValue }]]
34
+ ]
35
+ }
39
36
  }
40
37
  }
41
38
  ];
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.1.1",
2
+ "version": "1.1.2",
3
3
  "type": "module",
4
4
  "name": "@schoero/configs",
5
5
  "description": "",
@@ -114,8 +114,7 @@
114
114
  "vitest-github-actions-reporter": "^0.11.1"
115
115
  },
116
116
  "optionalDependencies": {
117
- "eslint-plugin-readable-tailwind": "^1.7.0",
118
- "eslint-plugin-tailwindcss": "^3.17.4"
117
+ "eslint-plugin-readable-tailwind": "^1.8.0"
119
118
  },
120
119
  "devDependencies": {
121
120
  "@types/node": "^22.5.2",