.eslintrc.js 757 B

123456789101112131415161718192021222324252627282930313233
  1. /**
  2. * @author https://gitee.com/chu1204505056/vue-admin-better (不想保留author可删除)
  3. * @description .eslintrc.js
  4. */
  5. module.exports = {
  6. root: true,
  7. env: {
  8. node: true,
  9. },
  10. extends: ['plugin:vue/recommended'],
  11. rules: {
  12. 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
  13. 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
  14. 'vue/no-v-html': 'off',
  15. 'vue/multi-word-component-names': 'off',
  16. 'vue/no-useless-template-attributes': 'off',
  17. },
  18. parserOptions: {
  19. parser: 'babel-eslint',
  20. },
  21. overrides: [
  22. {
  23. files: [
  24. '**/__tests__/*.{j,t}s?(x)',
  25. '**/tests/unit/**/*.spec.{j,t}s?(x)',
  26. ],
  27. env: {
  28. jest: true,
  29. },
  30. },
  31. ],
  32. }