@kirklin/eslint-config 2.3.3 → 2.5.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 CHANGED
@@ -33,7 +33,7 @@
33
33
  - Opinionated, but [very customizable](#customization)
34
34
  - [ESLint Flat config](https://eslint.org/docs/latest/use/configure/configuration-files-new), compose easily!
35
35
  - Optional [React](#react), [Svelte](#svelte), [UnoCSS](#unocss), [Astro](#astro), [Solid](#solid) support
36
- - Optional [formatters](#formatters) support for formatting CSS, HTML, etc.
36
+ - Optional [formatters](#formatters) support for formatting CSS, HTML, XML, etc.
37
37
  - **Style principle**: Minimal for reading, stable for diff, consistent
38
38
  - Sorted imports, dangling commas
39
39
  - Single quotes, no semi
@@ -127,9 +127,6 @@ Add the following settings to your `.vscode/settings.json`:
127
127
 
128
128
  ```jsonc
129
129
  {
130
- // Enable the ESlint flat config support
131
- "eslint.experimental.useFlatConfig": true,
132
-
133
130
  // Disable the default formatter, use eslint instead
134
131
  "prettier.enable": false,
135
132
  "editor.formatOnSave": false,
@@ -167,8 +164,15 @@ Add the following settings to your `.vscode/settings.json`:
167
164
  "jsonc",
168
165
  "yaml",
169
166
  "toml",
167
+ "xml",
170
168
  "gql",
171
- "graphql"
169
+ "graphql",
170
+ "astro",
171
+ "css",
172
+ "less",
173
+ "scss",
174
+ "pcss",
175
+ "postcss"
172
176
  ]
173
177
  }
174
178
  ```
@@ -600,7 +604,7 @@ You can add the trigger comment one line above the code you want to transform, f
600
604
  /// to-function
601
605
  const foo = async (msg: string): void => {
602
606
  console.log(msg)
603
- };
607
+ }
604
608
  ```
605
609
 
606
610
  Will be transformed to this when you hit save with your editor or run `eslint . --fix`:
@@ -716,6 +720,8 @@ This project is based on [@antfu/eslint-config](https://github.com/antfu/eslint-
716
720
 
717
721
  - [kirklin/dotfiles](https://github.com/kirklin/dotfiles) - My dotfiles
718
722
  - [kirklin/vscode-settings](https://github.com/kirklin/vscode-settings) - My VS Code settings
723
+ - [kirklin/boot-ts](https://github.com/kirklin/boot-ts) - My starter template for TypeScript library
724
+ - [kirklin/boot-vue](https://github.com/kirklin/boot-vue) - My starter template for Vue & Vite app
719
725
 
720
726
  ## License
721
727
 
package/README.zh-cn.md CHANGED
@@ -37,7 +37,7 @@
37
37
  - 使用[ESLint Stylistic](https://github.com/eslint-stylistic/eslint-stylistic)
38
38
  - 默认情况下遵守`.gitignore`
39
39
  - 可选的[React](#react), [Svelte](#svelte), [UnoCSS](#unocss), [Astro](#astro), [Solid](#solid)支持
40
- - 可选的[格式化程序](#formatters)支持CSS,HTML等。
40
+ - 可选的[格式化程序](#formatters)支持CSS,HTML,XML等。
41
41
  - **样式原则**:最小化阅读,稳定的差异性,保持一致性
42
42
 
43
43
  > [!IMPORTANT]
@@ -128,9 +128,6 @@ For example:
128
128
 
129
129
  ```jsonc
130
130
  {
131
- // 启用ESLint flat config支持
132
- "eslint.experimental.useFlatConfig": true,
133
-
134
131
  // 禁用默认的格式化程序,改用ESLint进行格式化
135
132
  "prettier.enable": false,
136
133
  "editor.formatOnSave": false,
@@ -168,8 +165,15 @@ For example:
168
165
  "jsonc",
169
166
  "yaml",
170
167
  "toml",
168
+ "xml",
171
169
  "gql",
172
- "graphql"
170
+ "graphql",
171
+ "astro",
172
+ "css",
173
+ "less",
174
+ "scss",
175
+ "pcss",
176
+ "postcss"
173
177
  ]
174
178
  }
175
179
  ```
@@ -384,7 +388,7 @@ export default kirklin({
384
388
 
385
389
  ### 配置组合器
386
390
 
387
- 从 v2.3.0 版本开始,工厂函数 `kirklin()` 返回了一个来自 `eslint-flat-config-utils` 的 [`FlatConfigComposer` 对象](https://github.com/antfu/eslint-flat-config-utils#composer)。您可以链式调用方法,以更加灵活地组合配置。
391
+ 从 v2.3.0 版本开始,工厂函数 `kirklin()` 返回了一个来自 `eslint-flat-config-utils` 的 [`FlatConfigComposer` 对象](https://github.com/kirklin/eslint-flat-config-utils#composer)。您可以链式调用方法,以更加灵活地组合配置。
388
392
 
389
393
  ```js
390
394
  // eslint.config.js
@@ -718,6 +722,8 @@ This project is based on [@antfu/eslint-config](https://github.com/antfu/eslint-
718
722
 
719
723
  - [kirklin/dotfiles](https://github.com/kirklin/dotfiles) - My dotfiles
720
724
  - [kirklin/vscode-settings](https://github.com/kirklin/vscode-settings) - My VS Code settings
725
+ - [kirklin/boot-ts](https://github.com/kirklin/boot-ts) - My starter template for TypeScript library
726
+ - [kirklin/boot-vue](https://github.com/kirklin/boot-vue) - My starter template for Vue & Vite app
721
727
 
722
728
  ## License
723
729
 
package/dist/cli.cjs CHANGED
@@ -48,8 +48,8 @@ var import_picocolors = __toESM(require("picocolors"), 1);
48
48
  var package_default = {
49
49
  name: "@kirklin/eslint-config",
50
50
  type: "module",
51
- version: "2.3.3",
52
- packageManager: "pnpm@9.1.0",
51
+ version: "2.5.0",
52
+ packageManager: "pnpm@9.4.0",
53
53
  description: "Kirk Lin's ESLint config",
54
54
  author: "Kirk Lin (https://github.com/kirklin/)",
55
55
  license: "MIT",
@@ -88,10 +88,11 @@ var package_default = {
88
88
  },
89
89
  peerDependencies: {
90
90
  "@eslint-react/eslint-plugin": "^1.5.8",
91
+ "@prettier/plugin-xml": "^3.4.1",
91
92
  "@unocss/eslint-plugin": ">=0.50.0",
92
- "astro-eslint-parser": "^0.16.3",
93
+ "astro-eslint-parser": "^1.0.2",
93
94
  eslint: ">=8.40.0",
94
- "eslint-plugin-astro": "^0.31.4",
95
+ "eslint-plugin-astro": "^1.2.0",
95
96
  "eslint-plugin-format": ">=0.1.0",
96
97
  "eslint-plugin-react-hooks": "^4.6.0",
97
98
  "eslint-plugin-react-refresh": "^0.4.4",
@@ -99,12 +100,15 @@ var package_default = {
99
100
  "eslint-plugin-svelte": ">=2.35.1",
100
101
  "prettier-plugin-astro": "^0.13.0",
101
102
  "prettier-plugin-slidev": "^1.0.5",
102
- "svelte-eslint-parser": "^0.33.1"
103
+ "svelte-eslint-parser": ">=0.37.0"
103
104
  },
104
105
  peerDependenciesMeta: {
105
106
  "@eslint-react/eslint-plugin": {
106
107
  optional: true
107
108
  },
109
+ "@prettier/plugin-xml": {
110
+ optional: true
111
+ },
108
112
  "@unocss/eslint-plugin": {
109
113
  optional: true
110
114
  },
@@ -142,81 +146,86 @@ var package_default = {
142
146
  dependencies: {
143
147
  "@antfu/install-pkg": "^0.3.3",
144
148
  "@clack/prompts": "^0.7.0",
145
- "@stylistic/eslint-plugin": "^2.1.0",
146
- "@typescript-eslint/eslint-plugin": "^7.8.0",
147
- "@typescript-eslint/parser": "^7.8.0",
149
+ "@stylistic/eslint-plugin": "^2.3.0",
150
+ "@typescript-eslint/eslint-plugin": "^7.14.1",
151
+ "@typescript-eslint/parser": "^7.14.1",
148
152
  "eslint-config-flat-gitignore": "^0.1.5",
149
- "eslint-flat-config-utils": "^0.2.4",
153
+ "eslint-flat-config-utils": "^0.2.5",
150
154
  "eslint-merge-processors": "^0.1.0",
151
- "eslint-plugin-command": "^0.2.0",
155
+ "eslint-plugin-command": "^0.2.3",
152
156
  "eslint-plugin-eslint-comments": "^3.2.0",
153
- "eslint-plugin-import-x": "^0.5.0",
154
- "eslint-plugin-jsdoc": "^48.2.3",
155
- "eslint-plugin-jsonc": "^2.15.1",
156
- "eslint-plugin-kirklin": "^1.2.0",
157
+ "eslint-plugin-import-x": "^0.5.2",
158
+ "eslint-plugin-jsdoc": "^48.5.0",
159
+ "eslint-plugin-jsonc": "^2.16.0",
160
+ "eslint-plugin-kirklin": "^1.3.0",
157
161
  "eslint-plugin-markdown": "^5.0.0",
158
- "eslint-plugin-n": "^17.5.1",
162
+ "eslint-plugin-n": "^17.9.0",
159
163
  "eslint-plugin-no-only-tests": "^3.1.0",
160
- "eslint-plugin-perfectionist": "^2.10.0",
161
- "eslint-plugin-toml": "^0.11.0",
162
- "eslint-plugin-unicorn": "^52.0.0",
163
- "eslint-plugin-unused-imports": "^3.2.0",
164
+ "eslint-plugin-perfectionist": "^2.11.0",
165
+ "eslint-plugin-regexp": "^2.6.0",
166
+ "eslint-plugin-toml": "^0.11.1",
167
+ "eslint-plugin-unicorn": "^54.0.0",
168
+ "eslint-plugin-unused-imports": "^4.0.0",
164
169
  "eslint-plugin-vitest": "^0.5.4",
165
170
  "eslint-plugin-vue": "^9.26.0",
166
171
  "eslint-plugin-yml": "^1.14.0",
167
172
  "eslint-processor-vue-blocks": "^0.1.2",
168
- globals: "^15.1.0",
173
+ globals: "^15.7.0",
169
174
  "jsonc-eslint-parser": "^2.4.0",
170
175
  "local-pkg": "^0.5.0",
171
176
  "parse-gitignore": "^2.0.0",
172
- picocolors: "^1.0.0",
173
- "toml-eslint-parser": "^0.9.3",
174
- "vue-eslint-parser": "^9.4.2",
175
- "yaml-eslint-parser": "^1.2.2",
177
+ picocolors: "^1.0.1",
178
+ "toml-eslint-parser": "^0.10.0",
179
+ "vue-eslint-parser": "^9.4.3",
180
+ "yaml-eslint-parser": "^1.2.3",
176
181
  yargs: "^17.7.2"
177
182
  },
178
183
  devDependencies: {
179
- "@antfu/eslint-plugin-prettier": "^5.0.1-1",
180
184
  "@antfu/ni": "^0.21.12",
181
- "@eslint-react/eslint-plugin": "^1.5.11",
182
- "@eslint/config-inspector": "^0.4.8",
185
+ "@eslint-react/eslint-plugin": "^1.5.19",
186
+ "@eslint/config-inspector": "^0.5.1",
183
187
  "@kirklin/eslint-config": "workspace:*",
184
- "@stylistic/eslint-plugin-migrate": "^2.1.0",
188
+ "@prettier/plugin-xml": "^3.4.1",
189
+ "@stylistic/eslint-plugin-migrate": "^2.3.0",
185
190
  "@types/eslint": "^8.56.10",
186
191
  "@types/fs-extra": "^11.0.4",
187
- "@types/node": "^20.12.11",
192
+ "@types/node": "^20.14.9",
188
193
  "@types/prompts": "^2.4.9",
189
194
  "@types/yargs": "^17.0.32",
190
- "@unocss/eslint-plugin": "^0.60.0",
195
+ "@unocss/eslint-plugin": "^0.61.0",
191
196
  "astro-eslint-parser": "^1.0.2",
192
197
  bumpp: "^9.4.1",
193
- "bundle-require": "^4.1.0",
194
- eslint: "^9.2.0",
195
- "eslint-plugin-astro": "^1.1.2",
196
- "eslint-plugin-format": "^0.1.1",
198
+ eslint: "npm:eslint-ts-patch@9.5.0-0",
199
+ "eslint-plugin-astro": "^1.2.2",
200
+ "eslint-plugin-format": "^0.1.2",
197
201
  "eslint-plugin-react-hooks": "^4.6.2",
198
202
  "eslint-plugin-react-refresh": "^0.4.7",
199
- "eslint-plugin-solid": "^0.14.0",
200
- "eslint-plugin-svelte": "2.38.0",
203
+ "eslint-plugin-solid": "^0.14.1",
204
+ "eslint-plugin-svelte": "^2.41.0",
205
+ "eslint-ts-patch": "9.5.0-0",
201
206
  "eslint-typegen": "^0.2.4",
202
207
  esno: "^4.7.0",
203
- execa: "^9.0.0",
208
+ execa: "^9.3.0",
204
209
  "fast-glob": "^3.3.2",
205
210
  "fs-extra": "^11.2.0",
206
- "lint-staged": "^15.2.2",
207
- "prettier-plugin-astro": "^0.13.0",
211
+ "lint-staged": "^15.2.7",
212
+ "prettier-plugin-astro": "^0.14.0",
208
213
  "prettier-plugin-slidev": "^1.0.5",
209
- rimraf: "^5.0.5",
214
+ rimraf: "^5.0.7",
210
215
  "simple-git-hooks": "^2.11.1",
211
- svelte: "^4.2.16",
212
- "svelte-eslint-parser": "^0.36.0",
213
- tsup: "^8.0.2",
214
- typescript: "^5.4.5",
216
+ svelte: "^4.2.18",
217
+ "svelte-eslint-parser": "^0.39.2",
218
+ tsup: "^8.1.0",
219
+ tsx: "^4.16.0",
220
+ typescript: "^5.5.2",
215
221
  vitest: "^1.6.0",
216
- vue: "^3.4.27"
222
+ vue: "^3.4.31"
223
+ },
224
+ resolutions: {
225
+ tsx: "~4.14"
217
226
  },
218
227
  "simple-git-hooks": {
219
- "pre-commit": "pnpm lint-staged"
228
+ "pre-commit": "npx lint-staged"
220
229
  },
221
230
  "lint-staged": {
222
231
  "*": "eslint --fix"
@@ -225,10 +234,6 @@ var package_default = {
225
234
 
226
235
  // src/cli/constants.ts
227
236
  var vscodeSettingsString = `
228
- // Enable the ESlint flat config support
229
- // (remove this if your ESLint extension above v3.0.5)
230
- "eslint.experimental.useFlatConfig": true,
231
-
232
237
  // Disable the default formatter, use eslint instead
233
238
  "prettier.enable": false,
234
239
  "editor.formatOnSave": false,
@@ -266,9 +271,15 @@ var vscodeSettingsString = `
266
271
  "jsonc",
267
272
  "yaml",
268
273
  "toml",
274
+ "xml",
269
275
  "gql",
270
276
  "graphql",
271
- "astro"
277
+ "astro",
278
+ "css",
279
+ "less",
280
+ "scss",
281
+ "pcss",
282
+ "postcss"
272
283
  ]
273
284
  `;
274
285
  var frameworkOptions = [
@@ -496,7 +507,7 @@ async function updateVscodeSettings(result) {
496
507
  p3.log.success(import_picocolors4.default.green(`Created .vscode/settings.json`));
497
508
  } else {
498
509
  let settingsContent = await import_promises3.default.readFile(settingsPath, "utf8");
499
- settingsContent = settingsContent.trim().replace(/\s*}$/, "");
510
+ settingsContent = settingsContent.trim().replace(/\s*\}$/, "");
500
511
  settingsContent += settingsContent.endsWith(",") || settingsContent.endsWith("{") ? "" : ",";
501
512
  settingsContent += `${vscodeSettingsString}}
502
513
  `;
package/dist/cli.js CHANGED
@@ -19,8 +19,8 @@ import c from "picocolors";
19
19
  var package_default = {
20
20
  name: "@kirklin/eslint-config",
21
21
  type: "module",
22
- version: "2.3.3",
23
- packageManager: "pnpm@9.1.0",
22
+ version: "2.5.0",
23
+ packageManager: "pnpm@9.4.0",
24
24
  description: "Kirk Lin's ESLint config",
25
25
  author: "Kirk Lin (https://github.com/kirklin/)",
26
26
  license: "MIT",
@@ -59,10 +59,11 @@ var package_default = {
59
59
  },
60
60
  peerDependencies: {
61
61
  "@eslint-react/eslint-plugin": "^1.5.8",
62
+ "@prettier/plugin-xml": "^3.4.1",
62
63
  "@unocss/eslint-plugin": ">=0.50.0",
63
- "astro-eslint-parser": "^0.16.3",
64
+ "astro-eslint-parser": "^1.0.2",
64
65
  eslint: ">=8.40.0",
65
- "eslint-plugin-astro": "^0.31.4",
66
+ "eslint-plugin-astro": "^1.2.0",
66
67
  "eslint-plugin-format": ">=0.1.0",
67
68
  "eslint-plugin-react-hooks": "^4.6.0",
68
69
  "eslint-plugin-react-refresh": "^0.4.4",
@@ -70,12 +71,15 @@ var package_default = {
70
71
  "eslint-plugin-svelte": ">=2.35.1",
71
72
  "prettier-plugin-astro": "^0.13.0",
72
73
  "prettier-plugin-slidev": "^1.0.5",
73
- "svelte-eslint-parser": "^0.33.1"
74
+ "svelte-eslint-parser": ">=0.37.0"
74
75
  },
75
76
  peerDependenciesMeta: {
76
77
  "@eslint-react/eslint-plugin": {
77
78
  optional: true
78
79
  },
80
+ "@prettier/plugin-xml": {
81
+ optional: true
82
+ },
79
83
  "@unocss/eslint-plugin": {
80
84
  optional: true
81
85
  },
@@ -113,81 +117,86 @@ var package_default = {
113
117
  dependencies: {
114
118
  "@antfu/install-pkg": "^0.3.3",
115
119
  "@clack/prompts": "^0.7.0",
116
- "@stylistic/eslint-plugin": "^2.1.0",
117
- "@typescript-eslint/eslint-plugin": "^7.8.0",
118
- "@typescript-eslint/parser": "^7.8.0",
120
+ "@stylistic/eslint-plugin": "^2.3.0",
121
+ "@typescript-eslint/eslint-plugin": "^7.14.1",
122
+ "@typescript-eslint/parser": "^7.14.1",
119
123
  "eslint-config-flat-gitignore": "^0.1.5",
120
- "eslint-flat-config-utils": "^0.2.4",
124
+ "eslint-flat-config-utils": "^0.2.5",
121
125
  "eslint-merge-processors": "^0.1.0",
122
- "eslint-plugin-command": "^0.2.0",
126
+ "eslint-plugin-command": "^0.2.3",
123
127
  "eslint-plugin-eslint-comments": "^3.2.0",
124
- "eslint-plugin-import-x": "^0.5.0",
125
- "eslint-plugin-jsdoc": "^48.2.3",
126
- "eslint-plugin-jsonc": "^2.15.1",
127
- "eslint-plugin-kirklin": "^1.2.0",
128
+ "eslint-plugin-import-x": "^0.5.2",
129
+ "eslint-plugin-jsdoc": "^48.5.0",
130
+ "eslint-plugin-jsonc": "^2.16.0",
131
+ "eslint-plugin-kirklin": "^1.3.0",
128
132
  "eslint-plugin-markdown": "^5.0.0",
129
- "eslint-plugin-n": "^17.5.1",
133
+ "eslint-plugin-n": "^17.9.0",
130
134
  "eslint-plugin-no-only-tests": "^3.1.0",
131
- "eslint-plugin-perfectionist": "^2.10.0",
132
- "eslint-plugin-toml": "^0.11.0",
133
- "eslint-plugin-unicorn": "^52.0.0",
134
- "eslint-plugin-unused-imports": "^3.2.0",
135
+ "eslint-plugin-perfectionist": "^2.11.0",
136
+ "eslint-plugin-regexp": "^2.6.0",
137
+ "eslint-plugin-toml": "^0.11.1",
138
+ "eslint-plugin-unicorn": "^54.0.0",
139
+ "eslint-plugin-unused-imports": "^4.0.0",
135
140
  "eslint-plugin-vitest": "^0.5.4",
136
141
  "eslint-plugin-vue": "^9.26.0",
137
142
  "eslint-plugin-yml": "^1.14.0",
138
143
  "eslint-processor-vue-blocks": "^0.1.2",
139
- globals: "^15.1.0",
144
+ globals: "^15.7.0",
140
145
  "jsonc-eslint-parser": "^2.4.0",
141
146
  "local-pkg": "^0.5.0",
142
147
  "parse-gitignore": "^2.0.0",
143
- picocolors: "^1.0.0",
144
- "toml-eslint-parser": "^0.9.3",
145
- "vue-eslint-parser": "^9.4.2",
146
- "yaml-eslint-parser": "^1.2.2",
148
+ picocolors: "^1.0.1",
149
+ "toml-eslint-parser": "^0.10.0",
150
+ "vue-eslint-parser": "^9.4.3",
151
+ "yaml-eslint-parser": "^1.2.3",
147
152
  yargs: "^17.7.2"
148
153
  },
149
154
  devDependencies: {
150
- "@antfu/eslint-plugin-prettier": "^5.0.1-1",
151
155
  "@antfu/ni": "^0.21.12",
152
- "@eslint-react/eslint-plugin": "^1.5.11",
153
- "@eslint/config-inspector": "^0.4.8",
156
+ "@eslint-react/eslint-plugin": "^1.5.19",
157
+ "@eslint/config-inspector": "^0.5.1",
154
158
  "@kirklin/eslint-config": "workspace:*",
155
- "@stylistic/eslint-plugin-migrate": "^2.1.0",
159
+ "@prettier/plugin-xml": "^3.4.1",
160
+ "@stylistic/eslint-plugin-migrate": "^2.3.0",
156
161
  "@types/eslint": "^8.56.10",
157
162
  "@types/fs-extra": "^11.0.4",
158
- "@types/node": "^20.12.11",
163
+ "@types/node": "^20.14.9",
159
164
  "@types/prompts": "^2.4.9",
160
165
  "@types/yargs": "^17.0.32",
161
- "@unocss/eslint-plugin": "^0.60.0",
166
+ "@unocss/eslint-plugin": "^0.61.0",
162
167
  "astro-eslint-parser": "^1.0.2",
163
168
  bumpp: "^9.4.1",
164
- "bundle-require": "^4.1.0",
165
- eslint: "^9.2.0",
166
- "eslint-plugin-astro": "^1.1.2",
167
- "eslint-plugin-format": "^0.1.1",
169
+ eslint: "npm:eslint-ts-patch@9.5.0-0",
170
+ "eslint-plugin-astro": "^1.2.2",
171
+ "eslint-plugin-format": "^0.1.2",
168
172
  "eslint-plugin-react-hooks": "^4.6.2",
169
173
  "eslint-plugin-react-refresh": "^0.4.7",
170
- "eslint-plugin-solid": "^0.14.0",
171
- "eslint-plugin-svelte": "2.38.0",
174
+ "eslint-plugin-solid": "^0.14.1",
175
+ "eslint-plugin-svelte": "^2.41.0",
176
+ "eslint-ts-patch": "9.5.0-0",
172
177
  "eslint-typegen": "^0.2.4",
173
178
  esno: "^4.7.0",
174
- execa: "^9.0.0",
179
+ execa: "^9.3.0",
175
180
  "fast-glob": "^3.3.2",
176
181
  "fs-extra": "^11.2.0",
177
- "lint-staged": "^15.2.2",
178
- "prettier-plugin-astro": "^0.13.0",
182
+ "lint-staged": "^15.2.7",
183
+ "prettier-plugin-astro": "^0.14.0",
179
184
  "prettier-plugin-slidev": "^1.0.5",
180
- rimraf: "^5.0.5",
185
+ rimraf: "^5.0.7",
181
186
  "simple-git-hooks": "^2.11.1",
182
- svelte: "^4.2.16",
183
- "svelte-eslint-parser": "^0.36.0",
184
- tsup: "^8.0.2",
185
- typescript: "^5.4.5",
187
+ svelte: "^4.2.18",
188
+ "svelte-eslint-parser": "^0.39.2",
189
+ tsup: "^8.1.0",
190
+ tsx: "^4.16.0",
191
+ typescript: "^5.5.2",
186
192
  vitest: "^1.6.0",
187
- vue: "^3.4.27"
193
+ vue: "^3.4.31"
194
+ },
195
+ resolutions: {
196
+ tsx: "~4.14"
188
197
  },
189
198
  "simple-git-hooks": {
190
- "pre-commit": "pnpm lint-staged"
199
+ "pre-commit": "npx lint-staged"
191
200
  },
192
201
  "lint-staged": {
193
202
  "*": "eslint --fix"
@@ -196,10 +205,6 @@ var package_default = {
196
205
 
197
206
  // src/cli/constants.ts
198
207
  var vscodeSettingsString = `
199
- // Enable the ESlint flat config support
200
- // (remove this if your ESLint extension above v3.0.5)
201
- "eslint.experimental.useFlatConfig": true,
202
-
203
208
  // Disable the default formatter, use eslint instead
204
209
  "prettier.enable": false,
205
210
  "editor.formatOnSave": false,
@@ -237,9 +242,15 @@ var vscodeSettingsString = `
237
242
  "jsonc",
238
243
  "yaml",
239
244
  "toml",
245
+ "xml",
240
246
  "gql",
241
247
  "graphql",
242
- "astro"
248
+ "astro",
249
+ "css",
250
+ "less",
251
+ "scss",
252
+ "pcss",
253
+ "postcss"
243
254
  ]
244
255
  `;
245
256
  var frameworkOptions = [
@@ -467,7 +478,7 @@ async function updateVscodeSettings(result) {
467
478
  p3.log.success(c4.green(`Created .vscode/settings.json`));
468
479
  } else {
469
480
  let settingsContent = await fsp3.readFile(settingsPath, "utf8");
470
- settingsContent = settingsContent.trim().replace(/\s*}$/, "");
481
+ settingsContent = settingsContent.trim().replace(/\s*\}$/, "");
471
482
  settingsContent += settingsContent.endsWith(",") || settingsContent.endsWith("{") ? "" : ",";
472
483
  settingsContent += `${vscodeSettingsString}}
473
484
  `;