vscode开启eslint

安装eslint插件
然后在settings.json加入下面配置

    "eslint.validate": [
        "javascript",
        "javascriptreact",
        "html",
        "vue"
    ],
    "editor.codeActionsOnSave": {
        "source.fixAll.eslint": true
    },
posted @ 2020-01-08 17:51  樱风凛  阅读(4050)  评论(0编辑  收藏  举报