eslint.config.js 543 B

1234567891011121314151617181920212223
  1. import js from "@eslint/js";
  2. import eslintPluginVue from "eslint-plugin-vue";
  3. import ts from "typescript-eslint";
  4. import globals from "globals";
  5. import prettier from "eslint-config-prettier";
  6. export default ts.config(
  7. js.configs.recommended,
  8. ...ts.configs.recommended,
  9. ...eslintPluginVue.configs["flat/recommended"],
  10. prettier,
  11. {
  12. files: ["*.vue", "**/*.vue"],
  13. languageOptions: {
  14. parserOptions: {
  15. parser: "@typescript-eslint/parser",
  16. },
  17. globals: {
  18. ...globals.browser,
  19. },
  20. },
  21. },
  22. );