记录 vue2.0 再使用过程中遇到的问题

vue-cli脚手架构建了项目如何去除Eslint验证

 

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

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

1
2
3
4
5
6
7
8
9
{
   test: /\.(js|vue)$/,
   loader: 'eslint-loader',
   enforce: 'pre',
   include: [resolve('src'), resolve('test')],
   options: {
     formatter: require('eslint-friendly-formatter')
   }
}
 
 
posted @ 2018-03-18 21:49  Kipper_liu  Views(85)  Comments(0)    收藏  举报