@schoero/configs 1.0.19 → 1.0.21

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.
@@ -1,7 +1,20 @@
1
1
  import eslintPluginReadableTailwind from "eslint-plugin-readable-tailwind";
2
+ import { getDefaultVariables } from "eslint-plugin-readable-tailwind/api/defaults";
3
+ import { MatcherType } from "eslint-plugin-readable-tailwind/api/types";
2
4
  import eslintPluginTailwindcss from "eslint-plugin-tailwindcss";
3
5
 
4
6
 
7
+ const tailwindCssVariables = [
8
+ ...getDefaultVariables(),
9
+ [
10
+ "variants", [
11
+ {
12
+ match: MatcherType.ObjectValue
13
+ }
14
+ ]
15
+ ]
16
+ ];
17
+
5
18
  const tailwindOptions = {
6
19
  callees: ["twMerge", "twJoin", "cn", "cnv", "cva"]
7
20
  };
@@ -19,9 +32,9 @@ export const tailwind = [
19
32
  "eslint-plugin-tailwindcss/enforces-shorthand": ["warn", tailwindOptions],
20
33
  "eslint-plugin-tailwindcss/no-contradicting-classname": ["warn", tailwindOptions],
21
34
 
22
- "eslint-plugin-readable-tailwind/multiline": ["warn", { printWidth: 119, group: "newLine" }],
23
- "eslint-plugin-readable-tailwind/no-unnecessary-whitespace": "warn",
24
- "eslint-plugin-readable-tailwind/sort-classes": "warn"
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 }]
25
38
  }
26
39
  }
27
40
  ];
@@ -269,15 +269,8 @@ export const typescript = [
269
269
  "eslint-plugin-typescript": eslintPluginTypeScript.plugin
270
270
  },
271
271
  files: [
272
- "**/*.config.ts",
273
- "**/*.config.mts",
274
- "**/*.config.cts",
275
- "**/*.md/*.ts",
276
- "**/*.md/*.tsx",
277
- "**/*.md/*.mts",
278
- "**/*.md/*.mtsx",
279
- "**/*.md/*.cts",
280
- "**/*.md/*.ctsx"
272
+ "**/*.config.{ts,mts,cts}",
273
+ "**/*.{md,mdx}/*.{ts,tsx,mjs,cjs,js,jsx,cts,mts,ctsx,mtsx}"
281
274
  ],
282
275
  rules: {
283
276
  ...Object.fromEntries(
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.19",
2
+ "version": "1.0.21",
3
3
  "type": "module",
4
4
  "name": "@schoero/configs",
5
5
  "description": "",
@@ -95,7 +95,7 @@
95
95
  "cspell-lib": "^8.9.1",
96
96
  "eslint-plugin-import": "npm:eslint-plugin-i@2.29.1",
97
97
  "eslint-plugin-import-newlines": "^1.4.0",
98
- "eslint-plugin-jsdoc": "^48.2.12",
98
+ "eslint-plugin-jsdoc": "^48.2.13",
99
99
  "eslint-plugin-jsonc": "^2.16.0",
100
100
  "eslint-plugin-markdown": "^5.0.0",
101
101
  "eslint-plugin-simple-import-sort": "^12.1.0",
@@ -113,10 +113,10 @@
113
113
  },
114
114
  "optionalDependencies": {
115
115
  "eslint-plugin-readable-tailwind": "1.5.2",
116
- "eslint-plugin-tailwindcss": "^3.17.3"
116
+ "eslint-plugin-tailwindcss": "^3.17.4"
117
117
  },
118
118
  "devDependencies": {
119
- "@types/node": "^20.14.6",
119
+ "@types/node": "^20.14.8",
120
120
  "changelogen": "^0.5.5",
121
121
  "cspell": "^8.9.1",
122
122
  "eslint": "^8.57.0",