.eslintrc.js 623 B

123456789101112131415161718192021222324252627
  1. /*
  2. * @Description:
  3. * @Version: 1.0
  4. * @Autor: zhuyijun
  5. * @Date: 2021-11-21 14:34:40
  6. * @LastEditTime: 2021-11-21 21:09:23
  7. */
  8. module.exports = {
  9. root: true,
  10. env: {
  11. node: true
  12. },
  13. extends: [
  14. 'plugin:vue/essential',
  15. '@vue/standard'
  16. ],
  17. parserOptions: {
  18. parser: 'babel-eslint'
  19. },
  20. rules: {
  21. 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
  22. 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
  23. 'space-before-function-paren': 0,
  24. indent: 'off',
  25. "eslint-disable-next-line": false
  26. }
  27. }