Formatting code memo ESlint

vscode code formatting configuration
vscode menu File -> Preferences -> Settings ---> Go to extend the search to ESlint, click on any of the options in the [configuration in setting.json in], copy the following code

{
"editor.tabSize": 2,
"files.associations": {
"* .Vue", "view"
},
"eslint.autoFixOnSave": true,
"eslint.options": {
"extensions": [
".js",
".view"
]
},
"eslint.validate": [
"javascript",{
"language": "vue",
"autoFix": true
},"html",
"view"
],
"search.exclude": {
"**/node_modules": true,
"**/bower_components": true,
"**/dist": true
},
"emmet.syntaxProfiles": {
"javascript": "jsx",
"vue": "html",
"vue-html": "html"
},
"git.confirmSync": false,
"window.zoomLevel": 0,
"editor.renderWhitespace": "boundary",
"editor.cursorBlinking": "smooth",
"editor.minimap.enabled": true,
"editor.minimap.renderCharacters": false,
"window.title": "${dirty}${activeEditorMedium}${separator}${rootName}",
"editor.codeLens": true,
"editor.snippetSuggestions": "top",
}

Guess you like

Origin www.cnblogs.com/tiandi0808/p/11295238.html