.eslintrc.js 987 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. module.exports = {
  2. root: true,
  3. env: {
  4. node: true
  5. },
  6. 'extends': [
  7. 'plugin:vue/vue3-essential',
  8. 'eslint:recommended',
  9. '@vue/typescript/recommended'
  10. ],
  11. parserOptions: {
  12. ecmaVersion: 2020
  13. },
  14. rules: {
  15. 'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
  16. 'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
  17. '@typescript-eslint/no-explicit-any': ['off'],
  18. '@typescript-eslint/no-unused-vars': ['off'],
  19. '@typescript-eslint/ban-types': ['off'],
  20. '@typescript-eslint/explicit-module-boundary-types': 'off'
  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. files: [
  34. './mock/*.{j,t}s?(x)',
  35. './src/utils/mock/*.{j,t}s?(x)'
  36. ],
  37. rules: {
  38. 'no-var': ['off'],
  39. '@typescript-eslint/no-var-requires': ['off'],
  40. }
  41. }
  42. ]
  43. }