create-lve 0.2.5 → 0.2.6
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/package.json
CHANGED
|
@@ -1,8 +1,76 @@
|
|
|
1
1
|
{
|
|
2
|
+
// ==================== Formatter (OXC) ====================
|
|
2
3
|
"editor.defaultFormatter": "oxc.oxc-vscode",
|
|
3
4
|
"editor.formatOnSave": true,
|
|
4
5
|
"editor.formatOnSaveMode": "file",
|
|
6
|
+
"oxc.enable.oxfmt": true,
|
|
7
|
+
|
|
8
|
+
// 语言特定 Formatter
|
|
9
|
+
"[javascript]": {
|
|
10
|
+
"editor.defaultFormatter": "oxc.oxc-vscode"
|
|
11
|
+
},
|
|
12
|
+
"[typescript]": {
|
|
13
|
+
"editor.defaultFormatter": "oxc.oxc-vscode"
|
|
14
|
+
},
|
|
15
|
+
"[typescriptreact]": {
|
|
16
|
+
"editor.defaultFormatter": "oxc.oxc-vscode"
|
|
17
|
+
},
|
|
18
|
+
"[javascriptreact]": {
|
|
19
|
+
"editor.defaultFormatter": "oxc.oxc-vscode"
|
|
20
|
+
},
|
|
21
|
+
"[css]": {
|
|
22
|
+
"editor.defaultFormatter": "oxc.oxc-vscode"
|
|
23
|
+
},
|
|
24
|
+
"[tailwindcss]": {
|
|
25
|
+
"editor.defaultFormatter": "oxc.oxc-vscode"
|
|
26
|
+
},
|
|
27
|
+
"[json]": {
|
|
28
|
+
"editor.defaultFormatter": "oxc.oxc-vscode"
|
|
29
|
+
},
|
|
30
|
+
"[jsonc]": {
|
|
31
|
+
"editor.defaultFormatter": "oxc.oxc-vscode"
|
|
32
|
+
},
|
|
33
|
+
"[html]": {
|
|
34
|
+
"editor.defaultFormatter": "oxc.oxc-vscode"
|
|
35
|
+
},
|
|
36
|
+
"[vue]": {
|
|
37
|
+
"editor.defaultFormatter": "oxc.oxc-vscode"
|
|
38
|
+
},
|
|
39
|
+
|
|
40
|
+
// ==================== Next.js 专用 ====================
|
|
41
|
+
"workbench.editor.customLabels.patterns": {
|
|
42
|
+
"**/app/**/layout.{js,jsx,ts,tsx}": "${dirname}/layout",
|
|
43
|
+
"**/app/**/page.{js,jsx,ts,tsx}": "${dirname}/page",
|
|
44
|
+
"**/app/**/route.{js,jsx,ts,tsx}": "${dirname}/route",
|
|
45
|
+
"**/app/**/loading.{js,jsx,ts,tsx}": "${dirname}/loading",
|
|
46
|
+
"**/app/**/template.{js,jsx,ts,tsx}": "${dirname}/template",
|
|
47
|
+
"**/app/**/default.{js,jsx,ts,tsx}": "${dirname}/default",
|
|
48
|
+
"**/app/**/error.{js,jsx,ts,tsx}": "${dirname}/error",
|
|
49
|
+
"**/app/**/not-found.{js,jsx,ts,tsx}": "${dirname}/not-found"
|
|
50
|
+
},
|
|
51
|
+
|
|
52
|
+
// ==================== TypeScript(解决 Next.js TS 问题)===================
|
|
53
|
+
"typescript.tsdk": "node_modules/typescript/lib",
|
|
54
|
+
"typescript.enablePromptUseWorkspaceTsdk": true,
|
|
55
|
+
|
|
56
|
+
// ==================== Tailwind + shadcn/ui(强烈推荐)===================
|
|
57
|
+
"tailwindCSS.experimental.classRegex": [["cn\\(([^)]*)\\)", "(?:'|\"|`)([^']*)(?:'|\"|`)"]],
|
|
58
|
+
"tailwindCSS.includeLanguages": {
|
|
59
|
+
"typescript": "html",
|
|
60
|
+
"typescriptreact": "html"
|
|
61
|
+
},
|
|
62
|
+
"editor.quickSuggestions": {
|
|
63
|
+
"strings": "on"
|
|
64
|
+
},
|
|
65
|
+
|
|
66
|
+
// ==================== 其他项目通用 ====================
|
|
67
|
+
"git.openRepositoryInParentFolders": "always",
|
|
68
|
+
"js/ts.updateImportsOnFileMove.enabled": "always",
|
|
69
|
+
"diffEditor.ignoreTrimWhitespace": true,
|
|
70
|
+
"diffEditor.hideUnchangedRegions.enabled": true,
|
|
71
|
+
|
|
5
72
|
"editor.codeActionsOnSave": {
|
|
6
|
-
"source.
|
|
7
|
-
}
|
|
73
|
+
"source.format.oxc": "always"
|
|
74
|
+
},
|
|
75
|
+
"editor.inlayHints.enabled": "on"
|
|
8
76
|
}
|