.eslintrc.js 592 B

123456789101112131415161718192021222324252627282930313233
  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. '@vue/prettier',
  11. '@vue/prettier/@typescript-eslint'
  12. ],
  13. rules: {
  14. '@typescript-eslint/no-explicit-any': ['off'],
  15. 'prettier/prettier': [
  16. 'off',
  17. {
  18. singleQuote: true,
  19. semi: false
  20. }
  21. ],
  22. 'vue/multi-word-component-names': [
  23. 'error',
  24. {
  25. ignores: ['index'] //需要忽略的组件名
  26. }
  27. ]
  28. },
  29. parserOptions: {
  30. ecmaVersion: 2020
  31. }
  32. }