.eslintrc.js 847 B

123456789101112131415161718192021222324252627282930313233
  1. module.exports = {
  2. env: {
  3. browser: true,
  4. es2021: true,
  5. node: true
  6. },
  7. globals: {
  8. defineProps: 'readonly',
  9. defineEmits: 'readonly',
  10. defineExpose: 'readonly',
  11. DialogType: "readonly",
  12. OptionType: "readonly",
  13. },
  14. parser: 'vue-eslint-parser',
  15. extends: [
  16. 'eslint:recommended',
  17. 'plugin:vue/vue3-essential',
  18. 'plugin:@typescript-eslint/recommended',
  19. './.eslintrc-auto-import.json'
  20. ],
  21. parserOptions: {
  22. ecmaVersion: 'latest',
  23. parser: '@typescript-eslint/parser',
  24. sourceType: 'module'
  25. },
  26. plugins: ['vue', '@typescript-eslint'],
  27. rules: {
  28. 'vue/multi-word-component-names': 'off',
  29. '@typescript-eslint/no-empty-function': 'off', // 关闭空方法检查
  30. '@typescript-eslint/no-explicit-any': 'off', // 关闭any类型的警告
  31. 'vue/no-v-model-argument': 'off'
  32. }
  33. };