VUE 开发中如何去掉去除Eslint验证

1.打开你生成的项目目录中的bulid—>webpack.base.conf.js删除如下代码: 

{     

  test: /\.(js|vue)$/,

       loader: 'eslint-loader',

  enforce: 'pre',

  include: [resolve('src'),

  resolve('test')],

  options: { formatter: require('eslint-friendly-formatter') }

}

2.在创建工程的时候,提示是否启用eslint检测的。 
Use ESLint to lint your code? `输no

posted @ 2018-03-12 16:36  BuildYourDream  阅读(999)  评论(0编辑  收藏  举报