@dhzh/eslint-config 0.1.4 → 0.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/LICENSE +1 -1
- package/README.md +21 -22
- package/dist/cli.cjs +123 -49
- package/dist/cli.js +123 -49
- package/dist/index.cjs +197 -83
- package/dist/index.d.cts +6819 -3582
- package/dist/index.d.ts +6819 -3582
- package/dist/index.js +197 -84
- package/package.json +39 -31
package/package.json
CHANGED
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dhzh/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.1
|
|
5
|
-
"packageManager": "pnpm@8.15.
|
|
4
|
+
"version": "0.2.1",
|
|
5
|
+
"packageManager": "pnpm@8.15.7",
|
|
6
6
|
"description": "Easton's ESLint config",
|
|
7
7
|
"author": "Easton Zheng <dhzhme@gmail.com>",
|
|
8
8
|
"license": "MIT",
|
|
9
9
|
"homepage": "https://github.com/eastonzh/eslint-config",
|
|
10
10
|
"keywords": [
|
|
11
|
+
"eslint",
|
|
11
12
|
"eslint-config"
|
|
12
13
|
],
|
|
13
14
|
"exports": {
|
|
@@ -29,7 +30,8 @@
|
|
|
29
30
|
"eslint": ">=8.40.0",
|
|
30
31
|
"eslint-plugin-astro": "^0.31.4",
|
|
31
32
|
"eslint-plugin-format": ">=0.1.0",
|
|
32
|
-
"eslint-plugin-
|
|
33
|
+
"eslint-plugin-solid": "^0.13.2",
|
|
34
|
+
"eslint-plugin-svelte": ">=2.35.1",
|
|
33
35
|
"prettier-plugin-astro": "^0.13.0",
|
|
34
36
|
"prettier-plugin-slidev": "^1.0.5",
|
|
35
37
|
"svelte-eslint-parser": "^0.33.1"
|
|
@@ -47,6 +49,9 @@
|
|
|
47
49
|
"eslint-plugin-format": {
|
|
48
50
|
"optional": true
|
|
49
51
|
},
|
|
52
|
+
"eslint-plugin-solid": {
|
|
53
|
+
"optional": true
|
|
54
|
+
},
|
|
50
55
|
"eslint-plugin-svelte": {
|
|
51
56
|
"optional": true
|
|
52
57
|
},
|
|
@@ -64,29 +69,29 @@
|
|
|
64
69
|
"@antfu/install-pkg": "^0.3.2",
|
|
65
70
|
"@clack/prompts": "^0.7.0",
|
|
66
71
|
"@stylistic/eslint-plugin": "^1.7.0",
|
|
67
|
-
"@typescript-eslint/eslint-plugin": "^7.
|
|
68
|
-
"@typescript-eslint/parser": "^7.
|
|
69
|
-
"eslint-config-flat-gitignore": "^0.1.
|
|
70
|
-
"eslint-flat-config-utils": "^0.
|
|
72
|
+
"@typescript-eslint/eslint-plugin": "^7.6.0",
|
|
73
|
+
"@typescript-eslint/parser": "^7.6.0",
|
|
74
|
+
"eslint-config-flat-gitignore": "^0.1.5",
|
|
75
|
+
"eslint-flat-config-utils": "^0.2.3",
|
|
71
76
|
"eslint-merge-processors": "^0.1.0",
|
|
72
77
|
"eslint-plugin-antfu": "^2.1.2",
|
|
73
78
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
74
|
-
"eslint-plugin-import-x": "^0.
|
|
75
|
-
"eslint-plugin-jsdoc": "^48.2.
|
|
76
|
-
"eslint-plugin-jsonc": "^2.
|
|
79
|
+
"eslint-plugin-import-x": "^0.5.0",
|
|
80
|
+
"eslint-plugin-jsdoc": "^48.2.3",
|
|
81
|
+
"eslint-plugin-jsonc": "^2.15.1",
|
|
77
82
|
"eslint-plugin-markdown": "^4.0.1",
|
|
78
|
-
"eslint-plugin-n": "^
|
|
83
|
+
"eslint-plugin-n": "^17.2.1",
|
|
79
84
|
"eslint-plugin-no-only-tests": "^3.1.0",
|
|
80
|
-
"eslint-plugin-perfectionist": "^2.
|
|
85
|
+
"eslint-plugin-perfectionist": "^2.9.0",
|
|
81
86
|
"eslint-plugin-react": "^7.34.1",
|
|
82
87
|
"eslint-plugin-react-hooks": "^4.6.0",
|
|
83
88
|
"eslint-plugin-react-refresh": "^0.4.6",
|
|
84
|
-
"eslint-plugin-toml": "^0.
|
|
85
|
-
"eslint-plugin-unicorn": "^
|
|
89
|
+
"eslint-plugin-toml": "^0.11.0",
|
|
90
|
+
"eslint-plugin-unicorn": "^52.0.0",
|
|
86
91
|
"eslint-plugin-unused-imports": "^3.1.0",
|
|
87
|
-
"eslint-plugin-vitest": "^0.
|
|
88
|
-
"eslint-plugin-vue": "^9.
|
|
89
|
-
"eslint-plugin-yml": "^1.
|
|
92
|
+
"eslint-plugin-vitest": "^0.5.3",
|
|
93
|
+
"eslint-plugin-vue": "^9.25.0",
|
|
94
|
+
"eslint-plugin-yml": "^1.14.0",
|
|
90
95
|
"eslint-processor-vue-blocks": "^0.1.1",
|
|
91
96
|
"globals": "^15.0.0",
|
|
92
97
|
"jsonc-eslint-parser": "^2.4.0",
|
|
@@ -101,21 +106,23 @@
|
|
|
101
106
|
"devDependencies": {
|
|
102
107
|
"@antfu/eslint-plugin-prettier": "^5.0.1-1",
|
|
103
108
|
"@antfu/ni": "^0.21.12",
|
|
109
|
+
"@eslint/config-inspector": "^0.4.6",
|
|
104
110
|
"@stylistic/eslint-plugin-migrate": "^1.7.0",
|
|
105
|
-
"@types/eslint": "^8.56.
|
|
111
|
+
"@types/eslint": "^8.56.9",
|
|
106
112
|
"@types/fs-extra": "^11.0.4",
|
|
107
|
-
"@types/node": "^20.
|
|
113
|
+
"@types/node": "^20.12.7",
|
|
108
114
|
"@types/prompts": "^2.4.9",
|
|
109
115
|
"@types/yargs": "^17.0.32",
|
|
110
|
-
"@unocss/eslint-plugin": "^0.
|
|
111
|
-
"astro-eslint-parser": "^0.
|
|
116
|
+
"@unocss/eslint-plugin": "^0.59.2",
|
|
117
|
+
"astro-eslint-parser": "^0.17.0",
|
|
112
118
|
"bumpp": "^9.4.0",
|
|
113
|
-
"
|
|
114
|
-
"eslint
|
|
115
|
-
"eslint-plugin-astro": "^0.
|
|
119
|
+
"bundle-require": "^4.0.2",
|
|
120
|
+
"eslint": "^9.0.0",
|
|
121
|
+
"eslint-plugin-astro": "^0.34.0",
|
|
116
122
|
"eslint-plugin-format": "^0.1.0",
|
|
123
|
+
"eslint-plugin-solid": "^0.13.2",
|
|
117
124
|
"eslint-plugin-svelte": "2.36.0-next.13",
|
|
118
|
-
"eslint-typegen": "^0.
|
|
125
|
+
"eslint-typegen": "^0.2.3",
|
|
119
126
|
"esno": "^4.7.0",
|
|
120
127
|
"execa": "^8.0.1",
|
|
121
128
|
"fast-glob": "^3.3.2",
|
|
@@ -125,13 +132,13 @@
|
|
|
125
132
|
"prettier-plugin-slidev": "^1.0.5",
|
|
126
133
|
"rimraf": "^5.0.5",
|
|
127
134
|
"simple-git-hooks": "^2.11.1",
|
|
128
|
-
"svelte": "^4.2.
|
|
129
|
-
"svelte-eslint-parser": "^0.
|
|
135
|
+
"svelte": "^4.2.14",
|
|
136
|
+
"svelte-eslint-parser": "^0.34.1",
|
|
130
137
|
"tsup": "^8.0.2",
|
|
131
|
-
"typescript": "^5.4.
|
|
132
|
-
"vitest": "^1.
|
|
138
|
+
"typescript": "^5.4.5",
|
|
139
|
+
"vitest": "^1.5.0",
|
|
133
140
|
"vue": "^3.4.21",
|
|
134
|
-
"@dhzh/eslint-config": "0.1
|
|
141
|
+
"@dhzh/eslint-config": "0.2.1"
|
|
135
142
|
},
|
|
136
143
|
"simple-git-hooks": {
|
|
137
144
|
"pre-commit": "pnpm lint-staged"
|
|
@@ -142,7 +149,8 @@
|
|
|
142
149
|
"scripts": {
|
|
143
150
|
"build": "nr typegen && tsup --format esm,cjs --clean --dts",
|
|
144
151
|
"stub": "tsup --format esm",
|
|
145
|
-
"dev": "
|
|
152
|
+
"dev": "npx @eslint/config-inspector --config eslint.config.ts",
|
|
153
|
+
"build:inspector": "pnpm build && npx @eslint/config-inspector build",
|
|
146
154
|
"watch": "tsup --format esm,cjs --watch",
|
|
147
155
|
"lint": "eslint .",
|
|
148
156
|
"typegen": "esno scripts/typegen.ts",
|