@dhzh/eslint-config 2.1.0 → 2.2.0
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/README.md +1 -1
- package/dist/cli/index.mjs +7 -8
- package/dist/index.d.mts +3984 -336
- package/dist/index.mjs +7 -10
- package/package.json +31 -19
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
|
|
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/
|
|
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") ? [
|
|
1103
|
-
...
|
|
1104
|
-
name: `${RULE_PREFIX}/tailwindcss/shared
|
|
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.
|
|
4
|
+
"version": "2.2.0",
|
|
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",
|
|
@@ -39,7 +51,7 @@
|
|
|
39
51
|
},
|
|
40
52
|
"peerDependencies": {
|
|
41
53
|
"@prettier/plugin-xml": "^3.4.2",
|
|
42
|
-
"eslint": "^10.
|
|
54
|
+
"eslint": "^10.5.0"
|
|
43
55
|
},
|
|
44
56
|
"peerDependenciesMeta": {
|
|
45
57
|
"@prettier/plugin-xml": {
|
|
@@ -47,31 +59,31 @@
|
|
|
47
59
|
}
|
|
48
60
|
},
|
|
49
61
|
"dependencies": {
|
|
50
|
-
"@clack/prompts": "^1.
|
|
62
|
+
"@clack/prompts": "^1.6.0",
|
|
51
63
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.7.2",
|
|
52
|
-
"@eslint-react/eslint-plugin": "^5.
|
|
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",
|
|
56
|
-
"@unocss/eslint-config": "66.7.
|
|
68
|
+
"@unocss/eslint-config": "66.7.2",
|
|
57
69
|
"ansis": "^4.3.1",
|
|
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
|
-
"eslint-plugin-n": "^18.0
|
|
65
|
-
"eslint-plugin-package-json": "^1.
|
|
77
|
+
"eslint-plugin-n": "^18.1.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.
|
|
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": "^
|
|
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,25 @@
|
|
|
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.
|
|
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/
|
|
89
|
-
"@types
|
|
90
|
-
"@typescript-eslint/types": "^8.60.1",
|
|
100
|
+
"@types/node": "^24.13.2",
|
|
101
|
+
"@typescript-eslint/types": "^8.61.1",
|
|
91
102
|
"bumpp": "^11.1.0",
|
|
92
103
|
"bundle-require": "^5.1.0",
|
|
93
|
-
"eslint": "^10.
|
|
104
|
+
"eslint": "^10.5.0",
|
|
94
105
|
"eslint-typegen": "^2.3.1",
|
|
95
|
-
"lint-staged": "^17.0.
|
|
106
|
+
"lint-staged": "^17.0.8",
|
|
96
107
|
"simple-git-hooks": "^2.13.1",
|
|
97
|
-
"tailwindcss": "^4.3.
|
|
98
|
-
"tsdown": "^0.22.
|
|
108
|
+
"tailwindcss": "^4.3.1",
|
|
109
|
+
"tsdown": "^0.22.3",
|
|
99
110
|
"tsx": "^4.22.4",
|
|
100
|
-
"typescript": "^6.0.3"
|
|
111
|
+
"typescript": "^6.0.3",
|
|
112
|
+
"node": "runtime:^26.3.1"
|
|
101
113
|
},
|
|
102
114
|
"simple-git-hooks": {
|
|
103
115
|
"pre-commit": "eval \"$(fnm env)\" && pnpm exec lint-staged"
|