@dhzh/eslint-config 2.1.1 → 2.2.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/dist/index.mjs CHANGED
@@ -23,7 +23,7 @@ import pluginImportX from "eslint-plugin-import-x";
23
23
  import pluginUnusedImports from "eslint-plugin-unused-imports";
24
24
  import pluginSimpleImportSort from "eslint-plugin-simple-import-sort";
25
25
  import pluginFormat from "eslint-plugin-format";
26
- import pluginTailwindcss from "eslint-plugin-tailwindcss";
26
+ import pluginBetterTailwindcss from "eslint-plugin-better-tailwindcss";
27
27
  import configUnocss from "@unocss/eslint-config/flat";
28
28
  import pluginYml from "eslint-plugin-yml";
29
29
  import pluginToml from "eslint-plugin-toml";
@@ -930,7 +930,7 @@ function unicorn(options = {}) {
930
930
  files: GLOB_SRC,
931
931
  rules: {
932
932
  "unicorn/consistent-destructuring": "off",
933
- "unicorn/prevent-abbreviations": "off",
933
+ "unicorn/name-replacements": "off",
934
934
  "unicorn/prefer-top-level-await": "off",
935
935
  "unicorn/no-unreadable-array-destructuring": "off",
936
936
  "unicorn/no-null": "off",
@@ -1099,17 +1099,14 @@ function format(options = {}) {
1099
1099
  //#region src/configs/tailwindcss.ts
1100
1100
  function tailwindcss(options = {}) {
1101
1101
  const { overrides = {} } = options;
1102
- return isPackageAvailable("tailwindcss") ? [...pluginTailwindcss.configs["flat/recommended"].map((item) => ({
1103
- ...item,
1104
- name: `${RULE_PREFIX}/tailwindcss/shared/${item.name?.replace("tailwindcss:", "")}`,
1102
+ return isPackageAvailable("tailwindcss") ? [{
1103
+ ...pluginBetterTailwindcss.configs.recommended,
1104
+ name: `${RULE_PREFIX}/tailwindcss/shared`,
1105
1105
  files: GLOB_SRC
1106
- })), {
1106
+ }, {
1107
1107
  name: `${RULE_PREFIX}/tailwindcss/customize`,
1108
1108
  files: GLOB_SRC,
1109
- rules: {
1110
- "tailwindcss/no-custom-classname": "off",
1111
- ...overrides
1112
- }
1109
+ rules: overrides
1113
1110
  }] : [];
1114
1111
  }
1115
1112
  //#endregion
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@dhzh/eslint-config",
3
3
  "type": "module",
4
- "version": "2.1.1",
4
+ "version": "2.2.1",
5
5
  "description": "tinywaves's ESLint config",
6
6
  "author": {
7
7
  "name": "Lyle Zheng",
@@ -27,6 +27,18 @@
27
27
  "import": "./dist/index.mjs"
28
28
  }
29
29
  },
30
+ "devEngines": {
31
+ "packageManager": {
32
+ "name": "pnpm",
33
+ "version": "^11.8.0",
34
+ "onFail": "download"
35
+ },
36
+ "runtime": {
37
+ "name": "node",
38
+ "version": "^26.3.1",
39
+ "onFail": "download"
40
+ }
41
+ },
30
42
  "main": "./dist/index.mjs",
31
43
  "module": "./dist/index.mjs",
32
44
  "types": "./dist/index.d.mts",
@@ -47,9 +59,9 @@
47
59
  }
48
60
  },
49
61
  "dependencies": {
50
- "@clack/prompts": "^1.5.1",
62
+ "@clack/prompts": "^1.6.0",
51
63
  "@eslint-community/eslint-plugin-eslint-comments": "^4.7.2",
52
- "@eslint-react/eslint-plugin": "^5.9.0",
64
+ "@eslint-react/eslint-plugin": "^5.9.1",
53
65
  "@eslint/js": "^10.0.1",
54
66
  "@manypkg/get-packages": "^3.1.0",
55
67
  "@stylistic/eslint-plugin": "^5.10.0",
@@ -58,20 +70,20 @@
58
70
  "cac": "^7.0.0",
59
71
  "eslint-merge-processors": "^2.0.0",
60
72
  "eslint-plugin-antfu": "^3.2.3",
73
+ "eslint-plugin-better-tailwindcss": "^4.6.0",
61
74
  "eslint-plugin-format": "^2.0.1",
62
75
  "eslint-plugin-import-x": "^4.16.2",
63
76
  "eslint-plugin-jsonc": "^3.2.0",
64
77
  "eslint-plugin-n": "^18.1.0",
65
- "eslint-plugin-package-json": "^1.3.0",
78
+ "eslint-plugin-package-json": "^1.5.0",
66
79
  "eslint-plugin-react-compiler": "19.1.0-rc.2",
67
80
  "eslint-plugin-react-google-translate": "^1.0.4",
68
81
  "eslint-plugin-react-hooks": "^7.1.1",
69
- "eslint-plugin-react-refresh": "^0.5.2",
82
+ "eslint-plugin-react-refresh": "^0.5.3",
70
83
  "eslint-plugin-regexp": "^3.1.0",
71
84
  "eslint-plugin-simple-import-sort": "^13.0.0",
72
- "eslint-plugin-tailwindcss": "4.0.0-beta.0",
73
85
  "eslint-plugin-toml": "^1.4.0",
74
- "eslint-plugin-unicorn": "^65.0.1",
86
+ "eslint-plugin-unicorn": "^68.0.0",
75
87
  "eslint-plugin-unused-imports": "^4.4.1",
76
88
  "eslint-plugin-vue": "^10.9.2",
77
89
  "eslint-plugin-yml": "^3.4.0",
@@ -79,25 +91,26 @@
79
91
  "globals": "^17.6.0",
80
92
  "local-pkg": "^1.2.1",
81
93
  "toml-eslint-parser": "^1.0.3",
82
- "typescript-eslint": "^8.61.0",
94
+ "typescript-eslint": "^8.61.1",
83
95
  "vue-eslint-parser": "^10.4.1"
84
96
  },
85
97
  "devDependencies": {
86
98
  "@eslint/config-inspector": "^3.0.4",
87
99
  "@prettier/plugin-xml": "^3.4.2",
88
- "@types/eslint-plugin-tailwindcss": "^3.17.0",
89
100
  "@types/node": "^24.13.2",
90
- "@typescript-eslint/types": "^8.61.0",
101
+ "@typescript-eslint/types": "^8.61.1",
91
102
  "bumpp": "^11.1.0",
92
103
  "bundle-require": "^5.1.0",
104
+ "changelogithub": "^14.0.0",
93
105
  "eslint": "^10.5.0",
94
106
  "eslint-typegen": "^2.3.1",
95
- "lint-staged": "^17.0.7",
107
+ "lint-staged": "^17.0.8",
96
108
  "simple-git-hooks": "^2.13.1",
97
109
  "tailwindcss": "^4.3.1",
98
- "tsdown": "^0.22.2",
110
+ "tsdown": "^0.22.3",
99
111
  "tsx": "^4.22.4",
100
- "typescript": "^6.0.3"
112
+ "typescript": "^6.0.3",
113
+ "node": "runtime:^26.3.1"
101
114
  },
102
115
  "simple-git-hooks": {
103
116
  "pre-commit": "eval \"$(fnm env)\" && pnpm exec lint-staged"
@@ -107,8 +120,8 @@
107
120
  },
108
121
  "scripts": {
109
122
  "build": "pnpm run typegen && tsdown --clean --dts",
110
- "build:inspector": "pnpm run build && npx @eslint/config-inspector build",
111
- "dev": "pnpm run typegen && npx @eslint/config-inspector --config eslint.config.ts",
123
+ "build:inspector": "pnpm run build && pnpm exec @eslint/config-inspector build",
124
+ "dev": "pnpm run typegen && pnpm exec @eslint/config-inspector --config eslint.config.ts",
112
125
  "lint": "eslint",
113
126
  "lint-fix": "eslint --fix .",
114
127
  "release": "bumpp",