.eslintrc.js 803 B

12345678910111213141516171819202122232425262728293031323334
  1. /**
  2. * @author https://vue-admin-beautiful.com (不想保留author可删除)
  3. * @description .eslintrc.js
  4. */
  5. module.exports = {
  6. root: true,
  7. env: {
  8. node: true,
  9. },
  10. extends: ['plugin:vue/recommended', '@vue/prettier'],
  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. 'vue/no-reserved-component-names': 'off',
  18. },
  19. parserOptions: {
  20. parser: 'babel-eslint',
  21. },
  22. overrides: [
  23. {
  24. files: [
  25. '**/__tests__/*.{j,t}s?(x)',
  26. '**/tests/unit/**/*.spec.{j,t}s?(x)',
  27. ],
  28. env: {
  29. jest: true,
  30. },
  31. },
  32. ],
  33. }