您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

32 行
781 B

  1. import pluginVue from 'eslint-plugin-vue'
  2. import vueTsEslintConfig from '@vue/eslint-config-typescript'
  3. import pluginVitest from '@vitest/eslint-plugin'
  4. import pluginPlaywright from 'eslint-plugin-playwright'
  5. import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'
  6. export default [
  7. {
  8. name: 'app/files-to-lint',
  9. files: ['**/*.{ts,mts,tsx,vue}'],
  10. },
  11. {
  12. name: 'app/files-to-ignore',
  13. ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**'],
  14. },
  15. ...pluginVue.configs['flat/essential'],
  16. ...vueTsEslintConfig(),
  17. {
  18. ...pluginVitest.configs.recommended,
  19. files: ['src/**/__tests__/*'],
  20. },
  21. {
  22. ...pluginPlaywright.configs['flat/recommended'],
  23. files: ['e2e/**/*.{test,spec}.{js,ts,jsx,tsx}'],
  24. },
  25. skipFormatting,
  26. ]