.eslintrc.js 617 B

123456789101112131415161718192021222324252627282930
  1. const { defineConfig } = require('eslint-define-config')
  2. module.exports = defineConfig({
  3. root: true,
  4. env: {
  5. browser: true,
  6. es6: true,
  7. node: true
  8. },
  9. plugins: [
  10. 'vue'
  11. ],
  12. parser: 'vue-eslint-parser',
  13. parserOptions: {
  14. parser: '@typescript-eslint/parser',
  15. ecmaVersion: '2020',
  16. sourceType: 'module',
  17. jsxPragma: 'React',
  18. ecmaFeatures: {
  19. jsx: true
  20. },
  21. },
  22. extends: [
  23. 'plugin:vue/vue3-recommended',
  24. 'plugin:@typescript-eslint/recommended'
  25. ],
  26. rules: {
  27. 'vue/multi-word-component-names': 'off',
  28. '@typescript-eslint/no-explicit-any': 'off'
  29. },
  30. })