@schoero/configs 1.1.1 → 1.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.
package/eslint/jsx.js CHANGED
@@ -2,7 +2,8 @@ import eslintPluginStylisticJS from "@stylistic/eslint-plugin-js";
2
2
  import eslintPluginStylisticJSX from "@stylistic/eslint-plugin-jsx";
3
3
  import eslintPluginStylisticPlus from "@stylistic/eslint-plugin-plus";
4
4
  import eslintPluginStylisticTS from "@stylistic/eslint-plugin-ts";
5
- import eslintPluginTypeScript from "typescript-eslint";
5
+ import eslintPluginTypeScript from "@typescript-eslint/eslint-plugin";
6
+ import eslintParserTypeScript from "@typescript-eslint/parser";
6
7
 
7
8
 
8
9
  /** @type {import("eslint").Linter.Config[]} */
@@ -58,10 +59,11 @@ export const jsx = [
58
59
  {
59
60
  files: ["**/*.{tsx,ctsx,mtsx}"],
60
61
  plugins: {
61
- "eslint-plugin-typescript": eslintPluginTypeScript.plugin,
62
+ "eslint-plugin-typescript": eslintPluginTypeScript,
62
63
  "eslint-plugin-stylistic-plus": eslintPluginStylisticPlus
63
64
  },
64
65
  languageOptions: {
66
+ parser: eslintParserTypeScript,
65
67
  parserOptions: {
66
68
  ecmaFeatures: {
67
69
  jsx: true
@@ -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.3",
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",