From a9585103dc735596906adaceeb53fc83876b327f Mon Sep 17 00:00:00 2001 From: Haoqun Jiang Date: Fri, 11 Oct 2024 16:46:09 +0800 Subject: [PATCH] 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 --- template/base/.vscode/settings.json | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 template/base/.vscode/settings.json diff --git a/template/base/.vscode/settings.json b/template/base/.vscode/settings.json new file mode 100644 index 00000000..985128aa --- /dev/null +++ b/template/base/.vscode/settings.json @@ -0,0 +1,8 @@ +{ + "explorer.fileNesting.enabled": true, + "explorer.fileNesting.patterns": { + "tsconfig.json": "tsconfig.*.json, env.d.ts", + "vite.config.*": "jsconfig*, vitest.config.*, cypress.config.*, playwright.config.*", + "package.json": "package-lock.json, pnpm*, .yarnrc*, yarn*, .eslint*, eslint*, .prettier*, prettier*, .editorconfig" + } +} -- 2.39.5