@dhzh/eslint-config 0.9.0 → 0.9.2
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.cjs +13 -12
- package/dist/cli.js +13 -12
- package/dist/index.cjs +3 -1
- package/dist/index.d.cts +147 -137
- package/dist/index.d.ts +147 -137
- package/dist/index.js +3 -1
- package/package.json +14 -13
package/dist/cli.cjs
CHANGED
|
@@ -48,12 +48,12 @@ var import_picocolors = __toESM(require("picocolors"), 1);
|
|
|
48
48
|
var package_default = {
|
|
49
49
|
name: "@dhzh/eslint-config",
|
|
50
50
|
type: "module",
|
|
51
|
-
version: "0.9.
|
|
51
|
+
version: "0.9.2",
|
|
52
52
|
packageManager: "pnpm@9.3.0",
|
|
53
53
|
description: "Easton's ESLint config",
|
|
54
54
|
author: "Easton Zheng <dhzhme@gmail.com>",
|
|
55
55
|
license: "MIT",
|
|
56
|
-
homepage: "https://github.com/
|
|
56
|
+
homepage: "https://github.com/dhzhme/eslint-config",
|
|
57
57
|
keywords: [
|
|
58
58
|
"eslint",
|
|
59
59
|
"eslint-config"
|
|
@@ -96,7 +96,7 @@ var package_default = {
|
|
|
96
96
|
"eslint-plugin-svelte": ">=2.35.1",
|
|
97
97
|
"prettier-plugin-astro": "^0.13.0",
|
|
98
98
|
"prettier-plugin-slidev": "^1.0.5",
|
|
99
|
-
"svelte-eslint-parser": "
|
|
99
|
+
"svelte-eslint-parser": ">=0.37.0"
|
|
100
100
|
},
|
|
101
101
|
peerDependenciesMeta: {
|
|
102
102
|
"@prettier/plugin-xml": {
|
|
@@ -144,17 +144,17 @@ var package_default = {
|
|
|
144
144
|
"eslint-plugin-command": "^0.2.3",
|
|
145
145
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
146
146
|
"eslint-plugin-import-x": "^0.5.1",
|
|
147
|
-
"eslint-plugin-jsdoc": "^48.2.
|
|
147
|
+
"eslint-plugin-jsdoc": "^48.2.12",
|
|
148
148
|
"eslint-plugin-jsonc": "^2.16.0",
|
|
149
149
|
"eslint-plugin-markdown": "^5.0.0",
|
|
150
|
-
"eslint-plugin-n": "^17.
|
|
150
|
+
"eslint-plugin-n": "^17.9.0",
|
|
151
151
|
"eslint-plugin-no-only-tests": "^3.1.0",
|
|
152
|
-
"eslint-plugin-perfectionist": "^2.
|
|
152
|
+
"eslint-plugin-perfectionist": "^2.11.0",
|
|
153
153
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
154
154
|
"eslint-plugin-react-refresh": "^0.4.7",
|
|
155
155
|
"eslint-plugin-regexp": "^2.6.0",
|
|
156
156
|
"eslint-plugin-toml": "^0.11.0",
|
|
157
|
-
"eslint-plugin-unicorn": "^
|
|
157
|
+
"eslint-plugin-unicorn": "^54.0.0",
|
|
158
158
|
"eslint-plugin-unused-imports": "^3.2.0",
|
|
159
159
|
"eslint-plugin-vitest": "^0.5.4",
|
|
160
160
|
"eslint-plugin-vue": "^9.26.0",
|
|
@@ -181,12 +181,13 @@ var package_default = {
|
|
|
181
181
|
"@types/node": "^20.14.2",
|
|
182
182
|
"@types/prompts": "^2.4.9",
|
|
183
183
|
"@types/yargs": "^17.0.32",
|
|
184
|
-
"@unocss/eslint-plugin": "^0.
|
|
184
|
+
"@unocss/eslint-plugin": "^0.61.0",
|
|
185
185
|
"astro-eslint-parser": "^1.0.2",
|
|
186
186
|
bumpp: "^9.4.1",
|
|
187
|
+
"bundle-require": "^5.0.0",
|
|
187
188
|
eslint: "npm:eslint-ts-patch@9.4.0-0",
|
|
188
189
|
"eslint-plugin-astro": "^1.2.2",
|
|
189
|
-
"eslint-plugin-format": "^0.1.
|
|
190
|
+
"eslint-plugin-format": "^0.1.2",
|
|
190
191
|
"eslint-plugin-solid": "^0.14.0",
|
|
191
192
|
"eslint-plugin-svelte": "^2.39.3",
|
|
192
193
|
"eslint-ts-patch": "9.4.0-0",
|
|
@@ -195,7 +196,7 @@ var package_default = {
|
|
|
195
196
|
execa: "^9.2.0",
|
|
196
197
|
"fast-glob": "^3.3.2",
|
|
197
198
|
"fs-extra": "^11.2.0",
|
|
198
|
-
"lint-staged": "^15.2.
|
|
199
|
+
"lint-staged": "^15.2.7",
|
|
199
200
|
"prettier-plugin-astro": "^0.14.0",
|
|
200
201
|
"prettier-plugin-slidev": "^1.0.5",
|
|
201
202
|
rimraf: "^5.0.7",
|
|
@@ -203,10 +204,10 @@ var package_default = {
|
|
|
203
204
|
svelte: "^4.2.18",
|
|
204
205
|
"svelte-eslint-parser": "^0.37.0",
|
|
205
206
|
tsup: "^8.1.0",
|
|
206
|
-
tsx: "^4.15.
|
|
207
|
+
tsx: "^4.15.5",
|
|
207
208
|
typescript: "^5.4.5",
|
|
208
209
|
vitest: "^1.6.0",
|
|
209
|
-
vue: "^3.4.
|
|
210
|
+
vue: "^3.4.29"
|
|
210
211
|
},
|
|
211
212
|
"simple-git-hooks": {
|
|
212
213
|
"pre-commit": "npx lint-staged"
|
package/dist/cli.js
CHANGED
|
@@ -19,12 +19,12 @@ import c from "picocolors";
|
|
|
19
19
|
var package_default = {
|
|
20
20
|
name: "@dhzh/eslint-config",
|
|
21
21
|
type: "module",
|
|
22
|
-
version: "0.9.
|
|
22
|
+
version: "0.9.2",
|
|
23
23
|
packageManager: "pnpm@9.3.0",
|
|
24
24
|
description: "Easton's ESLint config",
|
|
25
25
|
author: "Easton Zheng <dhzhme@gmail.com>",
|
|
26
26
|
license: "MIT",
|
|
27
|
-
homepage: "https://github.com/
|
|
27
|
+
homepage: "https://github.com/dhzhme/eslint-config",
|
|
28
28
|
keywords: [
|
|
29
29
|
"eslint",
|
|
30
30
|
"eslint-config"
|
|
@@ -67,7 +67,7 @@ var package_default = {
|
|
|
67
67
|
"eslint-plugin-svelte": ">=2.35.1",
|
|
68
68
|
"prettier-plugin-astro": "^0.13.0",
|
|
69
69
|
"prettier-plugin-slidev": "^1.0.5",
|
|
70
|
-
"svelte-eslint-parser": "
|
|
70
|
+
"svelte-eslint-parser": ">=0.37.0"
|
|
71
71
|
},
|
|
72
72
|
peerDependenciesMeta: {
|
|
73
73
|
"@prettier/plugin-xml": {
|
|
@@ -115,17 +115,17 @@ var package_default = {
|
|
|
115
115
|
"eslint-plugin-command": "^0.2.3",
|
|
116
116
|
"eslint-plugin-eslint-comments": "^3.2.0",
|
|
117
117
|
"eslint-plugin-import-x": "^0.5.1",
|
|
118
|
-
"eslint-plugin-jsdoc": "^48.2.
|
|
118
|
+
"eslint-plugin-jsdoc": "^48.2.12",
|
|
119
119
|
"eslint-plugin-jsonc": "^2.16.0",
|
|
120
120
|
"eslint-plugin-markdown": "^5.0.0",
|
|
121
|
-
"eslint-plugin-n": "^17.
|
|
121
|
+
"eslint-plugin-n": "^17.9.0",
|
|
122
122
|
"eslint-plugin-no-only-tests": "^3.1.0",
|
|
123
|
-
"eslint-plugin-perfectionist": "^2.
|
|
123
|
+
"eslint-plugin-perfectionist": "^2.11.0",
|
|
124
124
|
"eslint-plugin-react-hooks": "^4.6.2",
|
|
125
125
|
"eslint-plugin-react-refresh": "^0.4.7",
|
|
126
126
|
"eslint-plugin-regexp": "^2.6.0",
|
|
127
127
|
"eslint-plugin-toml": "^0.11.0",
|
|
128
|
-
"eslint-plugin-unicorn": "^
|
|
128
|
+
"eslint-plugin-unicorn": "^54.0.0",
|
|
129
129
|
"eslint-plugin-unused-imports": "^3.2.0",
|
|
130
130
|
"eslint-plugin-vitest": "^0.5.4",
|
|
131
131
|
"eslint-plugin-vue": "^9.26.0",
|
|
@@ -152,12 +152,13 @@ var package_default = {
|
|
|
152
152
|
"@types/node": "^20.14.2",
|
|
153
153
|
"@types/prompts": "^2.4.9",
|
|
154
154
|
"@types/yargs": "^17.0.32",
|
|
155
|
-
"@unocss/eslint-plugin": "^0.
|
|
155
|
+
"@unocss/eslint-plugin": "^0.61.0",
|
|
156
156
|
"astro-eslint-parser": "^1.0.2",
|
|
157
157
|
bumpp: "^9.4.1",
|
|
158
|
+
"bundle-require": "^5.0.0",
|
|
158
159
|
eslint: "npm:eslint-ts-patch@9.4.0-0",
|
|
159
160
|
"eslint-plugin-astro": "^1.2.2",
|
|
160
|
-
"eslint-plugin-format": "^0.1.
|
|
161
|
+
"eslint-plugin-format": "^0.1.2",
|
|
161
162
|
"eslint-plugin-solid": "^0.14.0",
|
|
162
163
|
"eslint-plugin-svelte": "^2.39.3",
|
|
163
164
|
"eslint-ts-patch": "9.4.0-0",
|
|
@@ -166,7 +167,7 @@ var package_default = {
|
|
|
166
167
|
execa: "^9.2.0",
|
|
167
168
|
"fast-glob": "^3.3.2",
|
|
168
169
|
"fs-extra": "^11.2.0",
|
|
169
|
-
"lint-staged": "^15.2.
|
|
170
|
+
"lint-staged": "^15.2.7",
|
|
170
171
|
"prettier-plugin-astro": "^0.14.0",
|
|
171
172
|
"prettier-plugin-slidev": "^1.0.5",
|
|
172
173
|
rimraf: "^5.0.7",
|
|
@@ -174,10 +175,10 @@ var package_default = {
|
|
|
174
175
|
svelte: "^4.2.18",
|
|
175
176
|
"svelte-eslint-parser": "^0.37.0",
|
|
176
177
|
tsup: "^8.1.0",
|
|
177
|
-
tsx: "^4.15.
|
|
178
|
+
tsx: "^4.15.5",
|
|
178
179
|
typescript: "^5.4.5",
|
|
179
180
|
vitest: "^1.6.0",
|
|
180
|
-
vue: "^3.4.
|
|
181
|
+
vue: "^3.4.29"
|
|
181
182
|
},
|
|
182
183
|
"simple-git-hooks": {
|
|
183
184
|
"pre-commit": "npx lint-staged"
|
package/dist/index.cjs
CHANGED
|
@@ -1898,7 +1898,9 @@ async function typescript(options = {}) {
|
|
|
1898
1898
|
"ts/no-unsafe-return": "error",
|
|
1899
1899
|
"ts/restrict-plus-operands": "error",
|
|
1900
1900
|
"ts/restrict-template-expressions": "error",
|
|
1901
|
+
"ts/return-await": "error",
|
|
1901
1902
|
"ts/strict-boolean-expressions": "error",
|
|
1903
|
+
"ts/switch-exhaustiveness-check": "error",
|
|
1902
1904
|
"ts/unbound-method": "error"
|
|
1903
1905
|
};
|
|
1904
1906
|
const [
|
|
@@ -2381,7 +2383,7 @@ function dhzh(options = {}, ...userConfigs) {
|
|
|
2381
2383
|
autoRenamePlugins = true,
|
|
2382
2384
|
componentExts = [],
|
|
2383
2385
|
gitignore: enableGitignore = true,
|
|
2384
|
-
isInEditor = !!((import_node_process3.default.env.VSCODE_PID || import_node_process3.default.env.VSCODE_CWD || import_node_process3.default.env.JETBRAINS_IDE || import_node_process3.default.env.VIM) && !import_node_process3.default.env.CI),
|
|
2386
|
+
isInEditor = !!((import_node_process3.default.env.VSCODE_PID || import_node_process3.default.env.VSCODE_CWD || import_node_process3.default.env.JETBRAINS_IDE || import_node_process3.default.env.VIM || import_node_process3.default.env.NVIM) && !import_node_process3.default.env.CI),
|
|
2385
2387
|
jsx: enableJsx = true,
|
|
2386
2388
|
react: enableReact = false,
|
|
2387
2389
|
regexp: enableRegexp = true,
|