eslint.config.js 655 B

123456789101112131415161718192021222324252627
  1. import js from '@eslint/js'
  2. import globals from 'globals'
  3. import tseslint from 'typescript-eslint'
  4. import pluginVue from 'eslint-plugin-vue'
  5. import { defineConfig } from 'eslint/config'
  6. export default defineConfig([
  7. {
  8. files: ['**/*.{js,mjs,cjs,ts,mts,cts,vue}'],
  9. plugins: { js },
  10. extends: ['js/recommended'],
  11. },
  12. {
  13. files: ['**/*.{js,mjs,cjs,ts,mts,cts,vue}'],
  14. languageOptions: { globals: globals.browser },
  15. },
  16. tseslint.configs.recommended,
  17. pluginVue.configs['flat/essential'],
  18. {
  19. files: ['**/*.vue'],
  20. languageOptions: { parserOptions: { parser: tseslint.parser } },
  21. },
  22. {
  23. ignores: ['node_modules'],
  24. },
  25. ])