eslint.config.mts 580 B

123456789101112131415161718192021
  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"], languageOptions: { globals: globals.browser } },
  11. tseslint.configs.recommended,
  12. pluginVue.configs["flat/essential"],
  13. {
  14. files: ["**/*.vue"],
  15. languageOptions:
  16. { parserOptions:
  17. { parser: tseslint.parser }
  18. }
  19. },
  20. ]);