首页 > vue-cli脚手架构建了项目,想去除Eslint验证,如何设置?

vue-cli脚手架构建了项目,想去除Eslint验证,如何设置?

使用vue-cli脚手架构建了webpack项目,在开发过程中,Eslint验证太严谨了,想通过设置将这验证给关闭掉,如何操作?
小白,请指教。


在webpack.base.conf.js里面删掉下面:

preLoaders: [
      {
        test: /\.vue$/,
        loader: 'eslint',
        include: projectRoot,
        exclude: [/node_modules/, /ignore_lib/]
      },
      {
        test: /\.js$/,
        loader: 'eslint',
        include: projectRoot,
        exclude: [/node_modules/, /ignore_lib/]
      }
    ]

其实我建议,将不想进行校验的文件就想上面一样创建一个ignore_lib,然后全部丢进去。

【热门文章】
【热门文章】