通过vue-cli3 的命令vue ui 生成的项目 携带了eslint校验,如何关闭?
找到 eslintrc.js 注释掉 // '@vue/standard'
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'

  }
}

相关文章:

  • 2021-12-17
  • 2022-12-23
  • 2021-08-25
  • 2021-06-30
  • 2022-12-23
  • 2021-11-18
  • 2021-04-04
  • 2021-09-19
猜你喜欢
  • 2021-09-22
  • 2022-12-23
  • 2022-01-13
  • 2021-08-15
  • 2022-01-03
  • 2022-12-23
相关资源
相似解决方案