Skip to content

Commit a958510

Browse files
haoqunjiangcexbrayat
authored andcommitted
feat: add vscode file nesting config to base template
We now have *a lot* of configuration files at the project's root. It would help to have them grouped in the editor. Many people aren't aware of this feature, so I'm adding a default configuration to the base template to raise awareness. This is a very rudimentary configuration; only patterns relevant to this project are included. Users can customize it further themselves. Or they can use a more advanced share configuration like https://github.com/antfu/vscode-file-nesting-config
1 parent 04ae802 commit a958510

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

template/base/.vscode/settings.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"explorer.fileNesting.enabled": true,
3+
"explorer.fileNesting.patterns": {
4+
"tsconfig.json": "tsconfig.*.json, env.d.ts",
5+
"vite.config.*": "jsconfig*, vitest.config.*, cypress.config.*, playwright.config.*",
6+
"package.json": "package-lock.json, pnpm*, .yarnrc*, yarn*, .eslint*, eslint*, .prettier*, prettier*, .editorconfig"
7+
}
8+
}

0 commit comments

Comments
 (0)