美文网首页
vue在vscode中使用esLIint

vue在vscode中使用esLIint

作者: yang_fy | 来源:发表于2018-07-20 13:06 被阅读13次

1、在vscode添加 eslint 插件

2、在vscode添加 vetur 插件

3、修改你的setting.json

{

    "editor.formatOnSave": false,

    "eslint.autoFixOnSave": true,

    "eslint.validate": [

        "javascript",{

            "language": "vue",

            "autoFix": true

        },

        "html",

        "vue"

    ]

}

相关文章

网友评论

      本文标题:vue在vscode中使用esLIint

      本文链接:https://www.haomeiwen.com/subject/lkgfmftx.html