vscode eslint配置

遇到过多次eslint不启用,老郁闷了,现在吧vscode 配置全粘过来,留作备份

{
    "editor.fontSize": 17,
    "terminal.integrated.rendererType": "dom",
    "editor.wordWrap": "on",
    "git.autorefresh": false,
    "window.zoomLevel": 0,
    "view-in-browser.customBrowser": "chrome",
    "files.associations": {
        "*.html": "html",
        "*.wpy":"vue"
    },
    "workbench.sideBar.location": "left",
    "editor.codeActionsOnSave": {
        "source.fixAll.eslint": true
    },
    "eslint.packageManager": "yarn",
    "eslint.codeAction.showDocumentation": {
        "enable": true
    },
    "eslint.codeAction.disableRuleComment": {
        "enable": true,
        "location": "separateLine"
    },
    "files.autoSave": "off",
    "eslint.validate": [
        "javascript",
        "javascriptreact",
        "vue-html",
        {
            "language": "vue",
            "autoFix": true
        }
    ],
    "eslint.run": "onSave",
}

 

posted @ 2020-11-19 11:14  岳帅超  阅读(331)  评论(0编辑  收藏  举报