"eslint.enable": true,
"eslint.codeAction.showDocumentation": {
"enable": true
},
"eslint.validate": ["javascript", "typescript", "javascriptreact", "typescriptreact", "html", "vue"],
"typescript.validate.enable": true,
"javascript.validate.enable": true,
// 这里配置eslint和stylelint和prettier的自动格式化
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true, // 开启eslint 保存自动检测
"source.fixAll.stylelint": true // 开启 Stylelint 保存自动检测
},
"workbench.iconTheme": "material-icon-theme",
"workbench.colorTheme": "Community Material Theme Palenight High Contrast",
"editor.fontFamily": "mononoki",
"liveServer.settings.donotShowInfoMsg": true,
"git.ignoreMissingGitWarning": true,
"typescript.updateImportsOnFileMove.enabled": "always",
// 当按tab键的时候,会自动提示
"emmet.triggerExpansionOnTab": true,
"emmet.showAbbreviationSuggestions": true,
"emmet.includeLanguages": {
"javascript": "javascriptreact"
},
"js/ts.implicitProjectConfig.checkJs": true,
"workbench.startupEditor": "none",
"stylelint.packageManager": "yarn",
"[scss]": {
"editor.defaultFormatter": "stylelint.vscode-stylelint"
},
"[vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"workbench.commandPalette.preserveInput": true,
"javascript.updateImportsOnFileMove.enabled": "always",
"editor.detectIndentation": false,
"[css]": {
"editor.defaultFormatter": "stylelint.vscode-stylelint"
},
"editor.defaultFormatter": "esbenp.prettier-vscode",
// Stylelint 校验文件
"stylelint.validate": ["css", "scss", "vue", "html", "tsx"],
"[typescript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"[javascript]": {
"editor.defaultFormatter": "vscode.typescript-language-features"
},
"prettier.printWidth": 120,
"vue3snippets.printWidth": 120,
"vue3snippets.tabWidth": 4,
"[xml]": {
"editor.defaultFormatter": "redhat.vscode-xml"
},
"scss.lint.unknownAtRules": "ignore",
"css.lint.unknownAtRules": "ignore",
"[dart]": {
"editor.formatOnSave": true,
"editor.formatOnType": true,
"editor.rulers": [80],
"editor.selectionHighlight": false,
"editor.suggestSelection": "first",
"editor.tabCompletion": "onlySnippets",
"editor.wordBasedSuggestions": false
},
"editor.formatOnSave": true,
"eslint.format.enable": true