@2030/eslint-config 2.0.3 → 3.0.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 +191 -270
- package/bin/index.js +1 -1
- package/bin/index.mjs +2 -0
- package/dist/cli.d.mts +1 -0
- package/dist/cli.mjs +340 -0
- package/dist/index.d.mts +19877 -0
- package/dist/index.mjs +2584 -0
- package/dist/lib-W3aIkNCI.mjs +11156 -0
- package/package.json +125 -103
- package/dist/cli.cjs +0 -614
- package/dist/cli.d.cts +0 -2
- package/dist/cli.d.ts +0 -2
- package/dist/cli.js +0 -585
- package/dist/index.cjs +0 -2756
- package/dist/index.d.cts +0 -16074
- package/dist/index.d.ts +0 -16074
- package/dist/index.js +0 -2643
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@2030/eslint-config",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "3.0.0",
|
|
5
5
|
"description": "Shareable ESLint config for conventional coding style",
|
|
6
6
|
"author": "Dai Jun <zijun2030@163.com>",
|
|
7
7
|
"license": "MIT",
|
|
@@ -9,32 +9,53 @@
|
|
|
9
9
|
"keywords": [
|
|
10
10
|
"eslint-config"
|
|
11
11
|
],
|
|
12
|
+
"publishConfig": {
|
|
13
|
+
"access": "public",
|
|
14
|
+
"registry": "https://registry.npmjs.org/"
|
|
15
|
+
},
|
|
12
16
|
"exports": {
|
|
13
|
-
".":
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
+
".": "./dist/index.mjs",
|
|
18
|
+
"./cli": "./dist/cli.mjs",
|
|
19
|
+
"./package.json": "./package.json"
|
|
17
20
|
},
|
|
18
|
-
"main": "./dist/index.
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
+
"main": "./dist/index.mjs",
|
|
22
|
+
"module": "./dist/index.mjs",
|
|
23
|
+
"types": "./dist/index.d.mts",
|
|
24
|
+
"bin": "./bin/index.mjs",
|
|
21
25
|
"files": [
|
|
22
26
|
"bin",
|
|
23
27
|
"dist"
|
|
24
28
|
],
|
|
29
|
+
"scripts": {
|
|
30
|
+
"build": "nr gen && tsdown --clean --dts",
|
|
31
|
+
"stub": "tsdown",
|
|
32
|
+
"dev": "npx @eslint/config-inspector --config eslint.config.ts",
|
|
33
|
+
"build:inspector": "pnpm build && npx @eslint/config-inspector build",
|
|
34
|
+
"watch": "tsdown --watch",
|
|
35
|
+
"lint": "eslint",
|
|
36
|
+
"gen": "tsx scripts/typegen.ts && tsx scripts/versiongen.ts",
|
|
37
|
+
"prepack": "nr build",
|
|
38
|
+
"release": "bumpp",
|
|
39
|
+
"test": "vitest",
|
|
40
|
+
"typecheck": "tsc --noEmit",
|
|
41
|
+
"prepare": "simple-git-hooks"
|
|
42
|
+
},
|
|
25
43
|
"peerDependencies": {
|
|
26
|
-
"@eslint-react/eslint-plugin": "^
|
|
44
|
+
"@eslint-react/eslint-plugin": "^2.0.1",
|
|
45
|
+
"@next/eslint-plugin-next": ">=15.0.0",
|
|
27
46
|
"@prettier/plugin-xml": "^3.4.1",
|
|
28
47
|
"@unocss/eslint-plugin": ">=0.50.0",
|
|
29
48
|
"astro-eslint-parser": "^1.0.2",
|
|
30
49
|
"eslint": "^9.10.0",
|
|
31
50
|
"eslint-plugin-astro": "^1.2.0",
|
|
32
51
|
"eslint-plugin-format": ">=0.1.0",
|
|
33
|
-
"eslint-plugin-
|
|
34
|
-
"eslint-plugin-react-
|
|
52
|
+
"eslint-plugin-jsx-a11y": ">=6.10.2",
|
|
53
|
+
"eslint-plugin-react-hooks": "^7.0.0",
|
|
54
|
+
"eslint-plugin-react-refresh": "^0.4.19",
|
|
35
55
|
"eslint-plugin-solid": "^0.14.3",
|
|
36
56
|
"eslint-plugin-svelte": ">=2.35.1",
|
|
37
|
-
"
|
|
57
|
+
"eslint-plugin-vuejs-accessibility": "^2.4.1",
|
|
58
|
+
"prettier-plugin-astro": "^0.14.0",
|
|
38
59
|
"prettier-plugin-slidev": "^1.0.5",
|
|
39
60
|
"svelte-eslint-parser": ">=0.37.0"
|
|
40
61
|
},
|
|
@@ -42,6 +63,9 @@
|
|
|
42
63
|
"@eslint-react/eslint-plugin": {
|
|
43
64
|
"optional": true
|
|
44
65
|
},
|
|
66
|
+
"@next/eslint-plugin-next": {
|
|
67
|
+
"optional": true
|
|
68
|
+
},
|
|
45
69
|
"@prettier/plugin-xml": {
|
|
46
70
|
"optional": true
|
|
47
71
|
},
|
|
@@ -57,6 +81,9 @@
|
|
|
57
81
|
"eslint-plugin-format": {
|
|
58
82
|
"optional": true
|
|
59
83
|
},
|
|
84
|
+
"eslint-plugin-jsx-a11y": {
|
|
85
|
+
"optional": true
|
|
86
|
+
},
|
|
60
87
|
"eslint-plugin-react-hooks": {
|
|
61
88
|
"optional": true
|
|
62
89
|
},
|
|
@@ -69,6 +96,9 @@
|
|
|
69
96
|
"eslint-plugin-svelte": {
|
|
70
97
|
"optional": true
|
|
71
98
|
},
|
|
99
|
+
"eslint-plugin-vuejs-accessibility": {
|
|
100
|
+
"optional": true
|
|
101
|
+
},
|
|
72
102
|
"prettier-plugin-astro": {
|
|
73
103
|
"optional": true
|
|
74
104
|
},
|
|
@@ -80,104 +110,96 @@
|
|
|
80
110
|
}
|
|
81
111
|
},
|
|
82
112
|
"dependencies": {
|
|
83
|
-
"@antfu/install-pkg": "
|
|
84
|
-
"@clack/prompts": "
|
|
85
|
-
"@eslint-community/eslint-plugin-eslint-comments": "
|
|
86
|
-
"@eslint/markdown": "
|
|
87
|
-
"@stylistic/eslint-plugin": "
|
|
88
|
-
"@typescript-eslint/eslint-plugin": "
|
|
89
|
-
"@typescript-eslint/parser": "
|
|
90
|
-
"@vitest/eslint-plugin": "
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"eslint-
|
|
94
|
-
"eslint-
|
|
95
|
-
"eslint-
|
|
96
|
-
"eslint-plugin-
|
|
97
|
-
"eslint-plugin-
|
|
98
|
-
"eslint-plugin-
|
|
99
|
-
"eslint-plugin-
|
|
100
|
-
"eslint-plugin-
|
|
101
|
-
"eslint-plugin-
|
|
102
|
-
"eslint-plugin-
|
|
103
|
-
"eslint-plugin-
|
|
104
|
-
"eslint-plugin-
|
|
105
|
-
"eslint-plugin-
|
|
106
|
-
"eslint-plugin-
|
|
107
|
-
"eslint-plugin-
|
|
108
|
-
"eslint-
|
|
109
|
-
"
|
|
110
|
-
"
|
|
111
|
-
"
|
|
112
|
-
"
|
|
113
|
-
"
|
|
114
|
-
"
|
|
115
|
-
"
|
|
116
|
-
"
|
|
117
|
-
"
|
|
113
|
+
"@antfu/install-pkg": "1.1.0",
|
|
114
|
+
"@clack/prompts": "0.11.0",
|
|
115
|
+
"@eslint-community/eslint-plugin-eslint-comments": "4.6.0",
|
|
116
|
+
"@eslint/markdown": "7.5.1",
|
|
117
|
+
"@stylistic/eslint-plugin": "5.7.0",
|
|
118
|
+
"@typescript-eslint/eslint-plugin": "8.53.0",
|
|
119
|
+
"@typescript-eslint/parser": "8.53.0",
|
|
120
|
+
"@vitest/eslint-plugin": "1.6.6",
|
|
121
|
+
"ansis": "4.2.0",
|
|
122
|
+
"cac": "6.7.14",
|
|
123
|
+
"eslint-config-flat-gitignore": "2.1.0",
|
|
124
|
+
"eslint-flat-config-utils": "2.1.4",
|
|
125
|
+
"eslint-merge-processors": "2.0.0",
|
|
126
|
+
"eslint-plugin-antfu": "3.1.3",
|
|
127
|
+
"eslint-plugin-command": "3.4.0",
|
|
128
|
+
"eslint-plugin-import-lite": "0.5.0",
|
|
129
|
+
"eslint-plugin-jsdoc": "62.0.0",
|
|
130
|
+
"eslint-plugin-jsonc": "2.21.0",
|
|
131
|
+
"eslint-plugin-n": "17.23.2",
|
|
132
|
+
"eslint-plugin-no-only-tests": "3.3.0",
|
|
133
|
+
"eslint-plugin-perfectionist": "5.3.1",
|
|
134
|
+
"eslint-plugin-pnpm": "1.4.3",
|
|
135
|
+
"eslint-plugin-regexp": "2.10.0",
|
|
136
|
+
"eslint-plugin-toml": "1.0.0",
|
|
137
|
+
"eslint-plugin-unicorn": "62.0.0",
|
|
138
|
+
"eslint-plugin-unused-imports": "4.3.0",
|
|
139
|
+
"eslint-plugin-vue": "10.6.2",
|
|
140
|
+
"eslint-plugin-yml": "1.19.1",
|
|
141
|
+
"eslint-processor-vue-blocks": "2.0.0",
|
|
142
|
+
"globals": "17.0.0",
|
|
143
|
+
"jsonc-eslint-parser": "2.4.2",
|
|
144
|
+
"local-pkg": "1.1.2",
|
|
145
|
+
"parse-gitignore": "2.0.0",
|
|
146
|
+
"toml-eslint-parser": "1.0.2",
|
|
147
|
+
"vue-eslint-parser": "10.2.0",
|
|
148
|
+
"yaml-eslint-parser": "1.3.2"
|
|
118
149
|
},
|
|
119
150
|
"devDependencies": {
|
|
120
|
-
"@
|
|
121
|
-
"@
|
|
122
|
-
"@eslint/
|
|
123
|
-
"@
|
|
124
|
-
"@
|
|
125
|
-
"@
|
|
126
|
-
"@
|
|
127
|
-
"@types/
|
|
128
|
-
"@types/
|
|
129
|
-
"@unocss/eslint-plugin": "
|
|
130
|
-
"astro-eslint-parser": "
|
|
131
|
-
"bumpp": "
|
|
132
|
-
"eslint": "
|
|
133
|
-
"eslint-plugin-astro": "
|
|
134
|
-
"eslint-plugin-
|
|
135
|
-
"eslint-plugin-
|
|
136
|
-
"eslint-plugin-
|
|
137
|
-
"eslint-plugin-
|
|
138
|
-
"eslint-plugin-
|
|
139
|
-
"eslint-
|
|
140
|
-
"
|
|
141
|
-
"
|
|
142
|
-
"
|
|
143
|
-
"
|
|
144
|
-
"
|
|
145
|
-
"
|
|
146
|
-
"
|
|
147
|
-
"
|
|
148
|
-
"
|
|
149
|
-
"
|
|
150
|
-
"
|
|
151
|
-
"svelte
|
|
152
|
-
"
|
|
153
|
-
"
|
|
154
|
-
"
|
|
155
|
-
"
|
|
156
|
-
"
|
|
157
|
-
"
|
|
151
|
+
"@2030/eslint-config": "workspace:*",
|
|
152
|
+
"@antfu/ni": "28.2.0",
|
|
153
|
+
"@eslint-react/eslint-plugin": "2.7.0",
|
|
154
|
+
"@eslint/config-inspector": "1.4.2",
|
|
155
|
+
"@next/eslint-plugin-next": "16.1.2",
|
|
156
|
+
"@prettier/plugin-xml": "3.4.2",
|
|
157
|
+
"@stylistic/eslint-plugin-migrate": "4.4.1",
|
|
158
|
+
"@types/eslint-plugin-jsx-a11y": "6.10.1",
|
|
159
|
+
"@types/node": "25.0.9",
|
|
160
|
+
"@unocss/eslint-plugin": "66.6.0",
|
|
161
|
+
"astro-eslint-parser": "1.2.2",
|
|
162
|
+
"bumpp": "10.4.0",
|
|
163
|
+
"eslint": "9.39.2",
|
|
164
|
+
"eslint-plugin-astro": "1.5.0",
|
|
165
|
+
"eslint-plugin-erasable-syntax-only": "0.4.0",
|
|
166
|
+
"eslint-plugin-format": "1.3.1",
|
|
167
|
+
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
168
|
+
"eslint-plugin-react-hooks": "7.0.1",
|
|
169
|
+
"eslint-plugin-react-refresh": "0.4.26",
|
|
170
|
+
"eslint-plugin-solid": "0.14.5",
|
|
171
|
+
"eslint-plugin-svelte": "3.14.0",
|
|
172
|
+
"eslint-plugin-vuejs-accessibility": "2.4.1",
|
|
173
|
+
"eslint-typegen": "2.3.0",
|
|
174
|
+
"execa": "9.6.1",
|
|
175
|
+
"find-up-simple": "1.0.1",
|
|
176
|
+
"jiti": "2.6.1",
|
|
177
|
+
"lint-staged": "16.2.7",
|
|
178
|
+
"pnpm-workspace-yaml": "1.4.3",
|
|
179
|
+
"prettier-plugin-astro": "0.14.1",
|
|
180
|
+
"prettier-plugin-slidev": "1.0.5",
|
|
181
|
+
"simple-git-hooks": "2.13.1",
|
|
182
|
+
"svelte": "5.46.4",
|
|
183
|
+
"svelte-eslint-parser": "1.4.1",
|
|
184
|
+
"tinyglobby": "0.2.15",
|
|
185
|
+
"tsdown": "0.18.4",
|
|
186
|
+
"tsx": "4.21.0",
|
|
187
|
+
"typescript": "5.9.3",
|
|
188
|
+
"vitest": "4.0.17",
|
|
189
|
+
"vue": "3.5.26"
|
|
158
190
|
},
|
|
159
191
|
"resolutions": {
|
|
160
|
-
"@eslint-community/eslint-utils": "
|
|
161
|
-
"@typescript-eslint/
|
|
162
|
-
"eslint": "
|
|
163
|
-
"
|
|
192
|
+
"@eslint-community/eslint-utils": "4.9.1",
|
|
193
|
+
"@typescript-eslint/types": "8.53.0",
|
|
194
|
+
"@typescript-eslint/utils": "8.53.0",
|
|
195
|
+
"chokidar": "5.0.0",
|
|
196
|
+
"eslint": "9.39.2",
|
|
197
|
+
"tsx": "4.21.0"
|
|
164
198
|
},
|
|
165
199
|
"simple-git-hooks": {
|
|
166
200
|
"pre-commit": "npx lint-staged"
|
|
167
201
|
},
|
|
168
202
|
"lint-staged": {
|
|
169
|
-
"*": "eslint --
|
|
170
|
-
},
|
|
171
|
-
"scripts": {
|
|
172
|
-
"build": "nr typegen && tsup --format esm,cjs --clean --dts",
|
|
173
|
-
"stub": "tsup --format esm",
|
|
174
|
-
"dev": "npx @eslint/config-inspector --config eslint.config.ts",
|
|
175
|
-
"build:inspector": "pnpm build && npx @eslint/config-inspector build",
|
|
176
|
-
"watch": "tsup --format esm,cjs --watch",
|
|
177
|
-
"lint": "eslint --flag unstable_ts_config .",
|
|
178
|
-
"typegen": "esno scripts/typegen.ts",
|
|
179
|
-
"release": "bumpp && pnpm publish",
|
|
180
|
-
"test": "vitest",
|
|
181
|
-
"typecheck": "tsc --noEmit"
|
|
203
|
+
"*": "eslint --fix"
|
|
182
204
|
}
|
|
183
|
-
}
|
|
205
|
+
}
|