vscode下eslint代码规范

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了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代码规范的主要内容,如果未能解决你的问题,请参考以下文章