eslint.config.js 911 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. import antfu from '@antfu/eslint-config'
  2. export default antfu({
  3. unocss: true,
  4. formatters: true,
  5. stylistic: true,
  6. ignores: [
  7. '.qoder/**',
  8. '.turing_coder_rules/**',
  9. 'design-system/**',
  10. ],
  11. rules: {
  12. 'n/prefer-global/process': 'off',
  13. 'no-undef': 'error',
  14. 'no-fallthrough': 'off',
  15. 'vue/block-order': 'off',
  16. '@typescript-eslint/no-this-alias': 'off',
  17. 'prefer-promise-reject-errors': 'off',
  18. },
  19. languageOptions: {
  20. globals: {
  21. h: 'readonly',
  22. unref: 'readonly',
  23. provide: 'readonly',
  24. inject: 'readonly',
  25. markRaw: 'readonly',
  26. defineAsyncComponent: 'readonly',
  27. nextTick: 'readonly',
  28. useRoute: 'readonly',
  29. useRouter: 'readonly',
  30. Message: 'readonly',
  31. $loadingBar: 'readonly',
  32. $message: 'readonly',
  33. $dialog: 'readonly',
  34. $notification: 'readonly',
  35. $modal: 'readonly',
  36. },
  37. },
  38. })