首页 > 代码库 > vscode下eslint代码规范

vscode下eslint代码规范

直接上规范吧:

// 将设置放入此文件中以覆盖默认设置{    "editor.fontSize": 17,    "editor.tabSize": 2,    "editor.formatOnSave": false,    "files.associations": {        "*.vue": "vue"    },    "eslint.validate": [        "javascript",        "javascriptreact",        "html",        "vue",        {            "language": "html",            "autoFix": true        }    ],    "emmet.syntaxProfiles": {        "vue-html": "html",        "vue": [            "css",            "html",            "less"        ]    },    "editor.fontFamily": "Source Code Pro, ‘Courier New‘, monospace",    "files.autoSave": "off",    "workbench.iconTheme": "vscode-icons"}

  

vscode下eslint代码规范