@dhzh/eslint-config 0.1.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/LICENSE +21 -0
- package/README.md +623 -0
- package/bin/index.js +2 -0
- package/dist/cli.cjs +584 -0
- package/dist/cli.d.cts +2 -0
- package/dist/cli.d.ts +2 -0
- package/dist/cli.js +555 -0
- package/dist/index.cjs +2330 -0
- package/dist/index.d.cts +599 -0
- package/dist/index.d.ts +599 -0
- package/dist/index.js +2233 -0
- package/package.json +167 -0
package/package.json
ADDED
|
@@ -0,0 +1,167 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@dhzh/eslint-config",
|
|
3
|
+
"type": "module",
|
|
4
|
+
"version": "0.1.0",
|
|
5
|
+
"packageManager": "pnpm@8.15.4",
|
|
6
|
+
"description": "Easton's ESLint config",
|
|
7
|
+
"author": "Easton Zheng <dhzhme@gmail.com>",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"homepage": "https://github.com/eastonzh/eslint-config",
|
|
10
|
+
"keywords": [
|
|
11
|
+
"eslint-config"
|
|
12
|
+
],
|
|
13
|
+
"exports": {
|
|
14
|
+
".": {
|
|
15
|
+
"import": "./dist/index.js",
|
|
16
|
+
"require": "./dist/index.cjs"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"main": "./dist/index.js",
|
|
20
|
+
"types": "./dist/index.d.ts",
|
|
21
|
+
"bin": "./bin/index.js",
|
|
22
|
+
"files": [
|
|
23
|
+
"bin",
|
|
24
|
+
"dist"
|
|
25
|
+
],
|
|
26
|
+
"peerDependencies": {
|
|
27
|
+
"@unocss/eslint-plugin": ">=0.50.0",
|
|
28
|
+
"astro-eslint-parser": "^0.16.3",
|
|
29
|
+
"eslint": ">=8.40.0",
|
|
30
|
+
"eslint-plugin-astro": "^0.31.4",
|
|
31
|
+
"eslint-plugin-format": ">=0.1.0",
|
|
32
|
+
"eslint-plugin-react": "^7.33.2",
|
|
33
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
34
|
+
"eslint-plugin-react-refresh": "^0.4.4",
|
|
35
|
+
"eslint-plugin-svelte": "^2.34.1",
|
|
36
|
+
"prettier-plugin-astro": "^0.13.0",
|
|
37
|
+
"prettier-plugin-slidev": "^1.0.5",
|
|
38
|
+
"svelte-eslint-parser": "^0.33.1"
|
|
39
|
+
},
|
|
40
|
+
"peerDependenciesMeta": {
|
|
41
|
+
"@unocss/eslint-plugin": {
|
|
42
|
+
"optional": true
|
|
43
|
+
},
|
|
44
|
+
"astro-eslint-parser": {
|
|
45
|
+
"optional": true
|
|
46
|
+
},
|
|
47
|
+
"eslint-plugin-astro": {
|
|
48
|
+
"optional": true
|
|
49
|
+
},
|
|
50
|
+
"eslint-plugin-format": {
|
|
51
|
+
"optional": true
|
|
52
|
+
},
|
|
53
|
+
"eslint-plugin-react": {
|
|
54
|
+
"optional": true
|
|
55
|
+
},
|
|
56
|
+
"eslint-plugin-react-hooks": {
|
|
57
|
+
"optional": true
|
|
58
|
+
},
|
|
59
|
+
"eslint-plugin-react-refresh": {
|
|
60
|
+
"optional": true
|
|
61
|
+
},
|
|
62
|
+
"eslint-plugin-svelte": {
|
|
63
|
+
"optional": true
|
|
64
|
+
},
|
|
65
|
+
"prettier-plugin-astro": {
|
|
66
|
+
"optional": true
|
|
67
|
+
},
|
|
68
|
+
"prettier-plugin-slidev": {
|
|
69
|
+
"optional": true
|
|
70
|
+
},
|
|
71
|
+
"svelte-eslint-parser": {
|
|
72
|
+
"optional": true
|
|
73
|
+
}
|
|
74
|
+
},
|
|
75
|
+
"dependencies": {
|
|
76
|
+
"@antfu/eslint-define-config": "^1.23.0-2",
|
|
77
|
+
"@antfu/install-pkg": "^0.3.1",
|
|
78
|
+
"@clack/prompts": "^0.7.0",
|
|
79
|
+
"@eslint-types/jsdoc": "46.8.2-1",
|
|
80
|
+
"@eslint-types/typescript-eslint": "^7.0.2",
|
|
81
|
+
"@eslint-types/unicorn": "^51.0.1",
|
|
82
|
+
"@stylistic/eslint-plugin": "^1.7.0",
|
|
83
|
+
"@typescript-eslint/eslint-plugin": "^7.2.0",
|
|
84
|
+
"@typescript-eslint/parser": "^7.2.0",
|
|
85
|
+
"eslint-config-flat-gitignore": "^0.1.3",
|
|
86
|
+
"eslint-merge-processors": "^0.1.0",
|
|
87
|
+
"eslint-plugin-antfu": "^2.1.2",
|
|
88
|
+
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
89
|
+
"eslint-plugin-import-x": "^0.4.1",
|
|
90
|
+
"eslint-plugin-jsdoc": "^48.2.1",
|
|
91
|
+
"eslint-plugin-jsonc": "^2.13.0",
|
|
92
|
+
"eslint-plugin-markdown": "^4.0.1",
|
|
93
|
+
"eslint-plugin-n": "^16.6.2",
|
|
94
|
+
"eslint-plugin-no-only-tests": "^3.1.0",
|
|
95
|
+
"eslint-plugin-perfectionist": "^2.6.0",
|
|
96
|
+
"eslint-plugin-toml": "^0.9.2",
|
|
97
|
+
"eslint-plugin-unicorn": "^51.0.1",
|
|
98
|
+
"eslint-plugin-unused-imports": "^3.1.0",
|
|
99
|
+
"eslint-plugin-vitest": "^0.3.26",
|
|
100
|
+
"eslint-plugin-vue": "^9.23.0",
|
|
101
|
+
"eslint-plugin-yml": "^1.12.2",
|
|
102
|
+
"eslint-processor-vue-blocks": "^0.1.1",
|
|
103
|
+
"globals": "^14.0.0",
|
|
104
|
+
"jsonc-eslint-parser": "^2.4.0",
|
|
105
|
+
"local-pkg": "^0.5.0",
|
|
106
|
+
"parse-gitignore": "^2.0.0",
|
|
107
|
+
"picocolors": "^1.0.0",
|
|
108
|
+
"toml-eslint-parser": "^0.9.3",
|
|
109
|
+
"vue-eslint-parser": "^9.4.2",
|
|
110
|
+
"yaml-eslint-parser": "^1.2.2",
|
|
111
|
+
"yargs": "^17.7.2"
|
|
112
|
+
},
|
|
113
|
+
"devDependencies": {
|
|
114
|
+
"@antfu/eslint-plugin-prettier": "^5.0.1-1",
|
|
115
|
+
"@antfu/ni": "^0.21.12",
|
|
116
|
+
"@stylistic/eslint-plugin-migrate": "^1.7.0",
|
|
117
|
+
"@types/eslint": "^8.56.5",
|
|
118
|
+
"@types/fs-extra": "^11.0.4",
|
|
119
|
+
"@types/node": "^20.11.27",
|
|
120
|
+
"@types/prompts": "^2.4.9",
|
|
121
|
+
"@types/yargs": "^17.0.32",
|
|
122
|
+
"@unocss/eslint-plugin": "^0.58.5",
|
|
123
|
+
"astro-eslint-parser": "^0.16.3",
|
|
124
|
+
"bumpp": "^9.4.0",
|
|
125
|
+
"eslint": "npm:eslint-ts-patch@^8.57.0-0",
|
|
126
|
+
"eslint-flat-config-viewer": "^0.1.11",
|
|
127
|
+
"eslint-plugin-astro": "^0.31.4",
|
|
128
|
+
"eslint-plugin-format": "^0.1.0",
|
|
129
|
+
"eslint-plugin-react": "^7.34.0",
|
|
130
|
+
"eslint-plugin-react-hooks": "^4.6.0",
|
|
131
|
+
"eslint-plugin-react-refresh": "^0.4.6",
|
|
132
|
+
"eslint-plugin-svelte": "^2.35.1",
|
|
133
|
+
"eslint-ts-patch": "^8.57.0-0",
|
|
134
|
+
"esno": "^4.7.0",
|
|
135
|
+
"execa": "^8.0.1",
|
|
136
|
+
"fast-glob": "^3.3.2",
|
|
137
|
+
"fs-extra": "^11.2.0",
|
|
138
|
+
"lint-staged": "^15.2.2",
|
|
139
|
+
"prettier-plugin-astro": "^0.13.0",
|
|
140
|
+
"prettier-plugin-slidev": "^1.0.5",
|
|
141
|
+
"rimraf": "^5.0.5",
|
|
142
|
+
"simple-git-hooks": "^2.10.0",
|
|
143
|
+
"svelte": "^4.2.12",
|
|
144
|
+
"svelte-eslint-parser": "^0.33.1",
|
|
145
|
+
"tsup": "^8.0.2",
|
|
146
|
+
"typescript": "^5.4.2",
|
|
147
|
+
"vitest": "^1.3.1",
|
|
148
|
+
"vue": "^3.4.21",
|
|
149
|
+
"@antfu/eslint-config": "npm:@dhzh/eslint-config@0.1.0"
|
|
150
|
+
},
|
|
151
|
+
"simple-git-hooks": {
|
|
152
|
+
"pre-commit": "pnpm lint-staged"
|
|
153
|
+
},
|
|
154
|
+
"lint-staged": {
|
|
155
|
+
"*": "eslint --fix"
|
|
156
|
+
},
|
|
157
|
+
"scripts": {
|
|
158
|
+
"build": "tsup --format esm,cjs --clean --dts",
|
|
159
|
+
"stub": "tsup --format esm",
|
|
160
|
+
"dev": "tsup --format esm,cjs --watch & eslint-flat-config-viewer",
|
|
161
|
+
"watch": "tsup --format esm,cjs --watch",
|
|
162
|
+
"lint": "eslint .",
|
|
163
|
+
"release": "bumpp && pnpm publish --access=public",
|
|
164
|
+
"test": "vitest",
|
|
165
|
+
"typecheck": "tsc --noEmit"
|
|
166
|
+
}
|
|
167
|
+
}
|