From b5ac311ec39544b4f5e61c9737a0ad4a06e60162 Mon Sep 17 00:00:00 2001 From: baiqi Date: Thu, 1 Jun 2023 11:35:09 +0800 Subject: [PATCH] chore: update .gitignore --- .gitignore | 2 +- .vscode/settings.json | 32 ++++++++++++++++++++++++++++++++ 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 .vscode/settings.json diff --git a/.gitignore b/.gitignore index 7940d56168..5ad4a81b2b 100644 --- a/.gitignore +++ b/.gitignore @@ -12,7 +12,6 @@ pnpm-error.log* .idea/* !.idea/icon.png **/*.iml -.vscode *.suo *.ntvs* *.njsproj @@ -20,6 +19,7 @@ pnpm-error.log* *.sw? .mvn !.mvn/maven-wrapper.properties +.history src/main/resources/static src/main/resources/templates diff --git a/.vscode/settings.json b/.vscode/settings.json new file mode 100644 index 0000000000..e5fd226222 --- /dev/null +++ b/.vscode/settings.json @@ -0,0 +1,32 @@ +{ + "typescript.tsdk": "/frontend/node_modules/typescript/lib", + "editor.codeActionsOnSave": { + "eslint.autoFixOnSave": true, + "source.fixAll.stylelint": true, // 开启stylelint自动修复 + }, + "editor.formatOnSave": true, + "eslint.validate": [ + "javascript", + "javascriptreact", + "typescript", + "typescriptreact", + "html", + "vue", + "markdown", + "json", + "jsonc" + ], + // 配置stylelint检查的文件类型范围 + "stylelint.validate": [ + "css", + "less", + "postcss", + "scss", + "sass", + "vue" + ], + "stylelint.enable": true, + "css.validate": false, + "less.validate": false, + "scss.validate": false, +} \ No newline at end of file