vue-cli脚手架构建了项目如何去除Eslint验证(语法格式验证)

1.创建工程的时候,提示是否启用eslint检测的。 Use ESLint to lint your code? No

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

    {
      test: /\.(js|vue)$/,
      loader: 'eslint-loader',
      enforce: 'pre',
      include: [resolve('src'), resolve('test')],
      options: {
        formatter: require('eslint-friendly-formatter')
      }
   }

 

posted @ 2017-05-02 17:22  惊蛰1993  阅读(18648)  评论(2编辑  收藏  举报