vue-cli3 取消关闭eslint 校验代码

通过vue-cli3 的命令vue ui 生成的项目 携带了eslint校验,如何关闭?
找到 eslintrc.js 注释掉 // parser: 'babel-eslint'
eslintrc.js

module.exports = {
  root: true,
  env: {
    node: true
  },
  extends: [
    'plugin:vue/essential',
    '@vue/standard'
  ],
  parserOptions: {
   // parser: 'babel-eslint'
  },
  rules: {
    'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
    'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'

  }
}

猜你喜欢

转载自www.cnblogs.com/fby698/p/12666512.html