1.Eslint Setting.json配置
"files.autoSave": "afterDelay",
"debug.node.autoAttach": "off",
"powermode.enabled": true,
"powermode.enableShake": false,
"git.path": "D:\\git\\Git\\cmd\\git.exe",
"sync.gist": "d7e513a6eb5feb156f299914740ba96f",
"editor.tabSize": 2,
"eslint.validate": ["javascript", "javascriptreact", "vue"],
"prettier.semi": false,
"prettier.singleQuote": true,
"csscomb.preset": {
},
"git.confirmSync": false,
"[html]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"window.zoomLevel": 0,
"diffEditor.ignoreTrimWhitespace": false,
"[vue]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
"vetur.format.options.useTabs": true,
"vetur.format.defaultFormatter.html": "js-beautify-html",
"vetur.format.options.tabSize": 4,
"vetur.format.defaultFormatterOptions": {
"prettier": {
"semi": false,
"singleQuote": true,
"eslintIntegration": true
}
},
"fileheader.customMade": {
"Author": "yuanrunwei",
"Date": "Do not edit",
"LastEditors": "yuanrunwei",
"LastEditTime": "Do not edit",
"FilePath": "Do not edit"
},
"fileheader.configObj": {
"wideSame": true,
"wideNum": 13
},
"fileheader.cursorMode": {
"method": "",
"param {Object} data": "",
"returns {String}": "",
"desc": ""
},
"[javascript]": {
"editor.defaultFormatter": "esbenp.prettier-vscode"
},
// 当保存的时候,eslint自动帮我们修复错误
"editor.codeActionsOnSave": {
"source.fixAll": true
},
"eslint.codeAction.showDocumentation": {
},
"eslint.codeAction.disableRuleComment": {
},
"enable": true
2…eslintrc.js配置
module.e