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