@dhzh/eslint-config 2.0.4 → 2.1.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/cli/index.mjs +10 -10
- package/dist/index.d.mts +726 -396
- package/dist/index.mjs +0 -47
- package/package.json +31 -29
package/dist/index.mjs
CHANGED
|
@@ -911,53 +911,6 @@ function json(options = {}) {
|
|
|
911
911
|
name: `${RULE_PREFIX}/json/customize/package.json`,
|
|
912
912
|
files: [GLOB_PACKAGE_JSON],
|
|
913
913
|
rules: {
|
|
914
|
-
"package-json/order-properties": ["error", { order: [
|
|
915
|
-
"publisher",
|
|
916
|
-
"name",
|
|
917
|
-
"displayName",
|
|
918
|
-
"type",
|
|
919
|
-
"version",
|
|
920
|
-
"private",
|
|
921
|
-
"packageManager",
|
|
922
|
-
"description",
|
|
923
|
-
"author",
|
|
924
|
-
"contributors",
|
|
925
|
-
"license",
|
|
926
|
-
"funding",
|
|
927
|
-
"homepage",
|
|
928
|
-
"repository",
|
|
929
|
-
"bugs",
|
|
930
|
-
"keywords",
|
|
931
|
-
"categories",
|
|
932
|
-
"sideEffects",
|
|
933
|
-
"exports",
|
|
934
|
-
"main",
|
|
935
|
-
"module",
|
|
936
|
-
"unpkg",
|
|
937
|
-
"jsdelivr",
|
|
938
|
-
"types",
|
|
939
|
-
"typesVersions",
|
|
940
|
-
"bin",
|
|
941
|
-
"icon",
|
|
942
|
-
"files",
|
|
943
|
-
"engines",
|
|
944
|
-
"activationEvents",
|
|
945
|
-
"contributes",
|
|
946
|
-
"scripts",
|
|
947
|
-
"release-it",
|
|
948
|
-
"peerDependencies",
|
|
949
|
-
"peerDependenciesMeta",
|
|
950
|
-
"dependencies",
|
|
951
|
-
"optionalDependencies",
|
|
952
|
-
"devDependencies",
|
|
953
|
-
"pnpm",
|
|
954
|
-
"overrides",
|
|
955
|
-
"resolutions",
|
|
956
|
-
"husky",
|
|
957
|
-
"simple-git-hooks",
|
|
958
|
-
"lint-staged",
|
|
959
|
-
"eslintConfig"
|
|
960
|
-
] }],
|
|
961
914
|
"package-json/require-type": packageJsonRequireType ? "error" : "off",
|
|
962
915
|
...overrides.packageJson
|
|
963
916
|
}
|
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.1.1",
|
|
5
5
|
"description": "tinywaves's ESLint config",
|
|
6
6
|
"author": {
|
|
7
7
|
"name": "Lyle Zheng",
|
|
@@ -30,7 +30,6 @@
|
|
|
30
30
|
"main": "./dist/index.mjs",
|
|
31
31
|
"module": "./dist/index.mjs",
|
|
32
32
|
"types": "./dist/index.d.mts",
|
|
33
|
-
"bin": "./bin/index.js",
|
|
34
33
|
"files": [
|
|
35
34
|
"bin",
|
|
36
35
|
"dist"
|
|
@@ -40,7 +39,7 @@
|
|
|
40
39
|
},
|
|
41
40
|
"peerDependencies": {
|
|
42
41
|
"@prettier/plugin-xml": "^3.4.2",
|
|
43
|
-
"eslint": "^10.
|
|
42
|
+
"eslint": "^10.5.0"
|
|
44
43
|
},
|
|
45
44
|
"peerDependenciesMeta": {
|
|
46
45
|
"@prettier/plugin-xml": {
|
|
@@ -48,22 +47,22 @@
|
|
|
48
47
|
}
|
|
49
48
|
},
|
|
50
49
|
"dependencies": {
|
|
51
|
-
"@clack/prompts": "^1.
|
|
52
|
-
"@eslint-community/eslint-plugin-eslint-comments": "^4.7.
|
|
53
|
-
"@eslint-react/eslint-plugin": "^
|
|
50
|
+
"@clack/prompts": "^1.5.1",
|
|
51
|
+
"@eslint-community/eslint-plugin-eslint-comments": "^4.7.2",
|
|
52
|
+
"@eslint-react/eslint-plugin": "^5.9.0",
|
|
54
53
|
"@eslint/js": "^10.0.1",
|
|
55
54
|
"@manypkg/get-packages": "^3.1.0",
|
|
56
55
|
"@stylistic/eslint-plugin": "^5.10.0",
|
|
57
|
-
"@unocss/eslint-config": "66.
|
|
58
|
-
"ansis": "^4.
|
|
56
|
+
"@unocss/eslint-config": "66.7.2",
|
|
57
|
+
"ansis": "^4.3.1",
|
|
59
58
|
"cac": "^7.0.0",
|
|
60
59
|
"eslint-merge-processors": "^2.0.0",
|
|
61
|
-
"eslint-plugin-antfu": "^3.2.
|
|
60
|
+
"eslint-plugin-antfu": "^3.2.3",
|
|
62
61
|
"eslint-plugin-format": "^2.0.1",
|
|
63
62
|
"eslint-plugin-import-x": "^4.16.2",
|
|
64
|
-
"eslint-plugin-jsonc": "^3.
|
|
65
|
-
"eslint-plugin-n": "^
|
|
66
|
-
"eslint-plugin-package-json": "^
|
|
63
|
+
"eslint-plugin-jsonc": "^3.2.0",
|
|
64
|
+
"eslint-plugin-n": "^18.1.0",
|
|
65
|
+
"eslint-plugin-package-json": "^1.3.0",
|
|
67
66
|
"eslint-plugin-react-compiler": "19.1.0-rc.2",
|
|
68
67
|
"eslint-plugin-react-google-translate": "^1.0.4",
|
|
69
68
|
"eslint-plugin-react-hooks": "^7.1.1",
|
|
@@ -71,33 +70,33 @@
|
|
|
71
70
|
"eslint-plugin-regexp": "^3.1.0",
|
|
72
71
|
"eslint-plugin-simple-import-sort": "^13.0.0",
|
|
73
72
|
"eslint-plugin-tailwindcss": "4.0.0-beta.0",
|
|
74
|
-
"eslint-plugin-toml": "^1.
|
|
75
|
-
"eslint-plugin-unicorn": "^
|
|
73
|
+
"eslint-plugin-toml": "^1.4.0",
|
|
74
|
+
"eslint-plugin-unicorn": "^65.0.1",
|
|
76
75
|
"eslint-plugin-unused-imports": "^4.4.1",
|
|
77
|
-
"eslint-plugin-vue": "^10.9.
|
|
78
|
-
"eslint-plugin-yml": "^3.
|
|
76
|
+
"eslint-plugin-vue": "^10.9.2",
|
|
77
|
+
"eslint-plugin-yml": "^3.4.0",
|
|
79
78
|
"eslint-processor-vue-blocks": "^2.0.0",
|
|
80
|
-
"globals": "^17.
|
|
81
|
-
"local-pkg": "^1.1
|
|
79
|
+
"globals": "^17.6.0",
|
|
80
|
+
"local-pkg": "^1.2.1",
|
|
82
81
|
"toml-eslint-parser": "^1.0.3",
|
|
83
|
-
"typescript-eslint": "^8.
|
|
84
|
-
"vue-eslint-parser": "^10.4.
|
|
82
|
+
"typescript-eslint": "^8.61.0",
|
|
83
|
+
"vue-eslint-parser": "^10.4.1"
|
|
85
84
|
},
|
|
86
85
|
"devDependencies": {
|
|
87
|
-
"@eslint/config-inspector": "^
|
|
86
|
+
"@eslint/config-inspector": "^3.0.4",
|
|
88
87
|
"@prettier/plugin-xml": "^3.4.2",
|
|
89
88
|
"@types/eslint-plugin-tailwindcss": "^3.17.0",
|
|
90
|
-
"@types/node": "^24.
|
|
91
|
-
"@typescript-eslint/types": "^8.
|
|
92
|
-
"bumpp": "^11.0
|
|
89
|
+
"@types/node": "^24.13.2",
|
|
90
|
+
"@typescript-eslint/types": "^8.61.0",
|
|
91
|
+
"bumpp": "^11.1.0",
|
|
93
92
|
"bundle-require": "^5.1.0",
|
|
94
|
-
"eslint": "^10.
|
|
93
|
+
"eslint": "^10.5.0",
|
|
95
94
|
"eslint-typegen": "^2.3.1",
|
|
96
|
-
"lint-staged": "^
|
|
95
|
+
"lint-staged": "^17.0.7",
|
|
97
96
|
"simple-git-hooks": "^2.13.1",
|
|
98
|
-
"tailwindcss": "^4.
|
|
99
|
-
"tsdown": "^0.
|
|
100
|
-
"tsx": "^4.
|
|
97
|
+
"tailwindcss": "^4.3.1",
|
|
98
|
+
"tsdown": "^0.22.2",
|
|
99
|
+
"tsx": "^4.22.4",
|
|
101
100
|
"typescript": "^6.0.3"
|
|
102
101
|
},
|
|
103
102
|
"simple-git-hooks": {
|
|
@@ -115,5 +114,8 @@
|
|
|
115
114
|
"release": "bumpp",
|
|
116
115
|
"typecheck": "tsc --noEmit",
|
|
117
116
|
"typegen": "tsx scripts/eslint-typegen.ts"
|
|
117
|
+
},
|
|
118
|
+
"bin": {
|
|
119
|
+
"eslint-config": "./bin/index.js"
|
|
118
120
|
}
|
|
119
121
|
}
|