settting.json
配置
{
"files.autoSave": "onFocusChange",
"editor.fontSize": 16,
"editor.tabSize": 2,
"editor.minimap.enabled": false,
"workbench.colorTheme": "Monokai",
"[typescriptreact]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[typescript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"[less]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"editor.codeActionsOnSave": {
// 保存时自动修复
"source.fixAll.eslint": true
},
"eslint.options": {
//指定vscode的eslint所处理的文件的后缀
"extensions": [".js", ".vue", ".ts", ".tsx"]
// "configFile": "/Users/monro/Documents/workspace/tuya-standard-panel/TYPublishBluetoothSoundBox/.eslintrc.js"
},
"editor.snippetSuggestions": "top",
"eslint.validate": [
"javascript",
"javascriptreact",
"typescript",
"typescriptreact",
"html",
"vue"
],
"eslint.codeAction.showDocumentation": {
"enable": true
},
"eslint.packageManager": "yarn",
// 关闭js/ts的默认format,统一用eslint进行格式化(tslint已经不维护了,所以转eslint吧)
"javascript.format.enable": false,
"typescript.format.enable": false,
"terminal.integrated.allowChords": false,
"git.autofetch": true,
"prettier.printWidth": 80,
"explorer.confirmDelete": false,
"i18n-ally.ignoredLocales": [],
"git.confirmSync": false,
"[json]": {
"editor.defaultFormatter": "vscode.json-language-features"
},
"diffEditor.ignoreTrimWhitespace": false,
"explorer.confirmDragAndDrop": false,
"javascript.updateImportsOnFileMove.enabled": "always",
"git.enableSmartCommit": true,
"editor.formatOnSave": true,
"eslint.codeActionsOnSave.rules": [],
"eslint.trace.server": "off",
"terminal.integrated.enableMultiLinePasteWarning": false,
"sync.gist": "0c8b8b27f7a7ab07b7865d4246fac517",
"sync.autoDownload": false,
"sync.autoUpload": false,
"sync.forceDownload": false,
"sync.forceUpload": false,
"sync.quietSync": false,
"sync.syncExtensions": true,
"[jsonc]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"security.workspace.trust.untrustedFiles": "open",
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"workbench.startupEditor": "none",
"[vue]": {
"editor.defaultFormatter": "octref.vetur"
},
"eslint.rules.customizations": []
}