其他分享
首页 > 其他分享> > 配置 eslint 去掉 no-unused-vars 报错 方法汇总

配置 eslint 去掉 no-unused-vars 报错 方法汇总

作者:互联网

1 : vue.config.js 中增加 lintOnSave: false

2 :package.json -> eslintConfig ->rules ->

{
        "no-": "off",
      "no-debugger":"off",
      "no-console": "off",
      "no-empty":"off",
      "no-unused-vars":"off"
}

3:新建 .eslintrc.json

{
    "rules": {
        "no-unused-vars": 0
    }
}

标签:off,vars,no,rules,unused,json,报错
来源: https://blog.51cto.com/13496570/2661525