eslint.config.js 573 B

12345678910111213141516171819202122232425
  1. import js from '@eslint/js'
  2. import pluginVue from 'eslint-plugin-vue'
  3. import pluginVitest from '@vitest/eslint-plugin'
  4. import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'
  5. export default [
  6. {
  7. name: 'app/files-to-lint',
  8. files: ['**/*.{js,mjs,jsx,vue}'],
  9. },
  10. {
  11. name: 'app/files-to-ignore',
  12. ignores: ['**/dist/**', '**/dist-ssr/**', '**/coverage/**'],
  13. },
  14. js.configs.recommended,
  15. ...pluginVue.configs['flat/essential'],
  16. {
  17. ...pluginVitest.configs.recommended,
  18. files: ['src/**/__tests__/*'],
  19. },
  20. skipFormatting,
  21. ]