eslint.config.mjs 602 B

123456789101112131415161718192021
  1. import { defineConfig, globalIgnores } from "eslint/config";
  2. import nextVitals from "eslint-config-next/core-web-vitals";
  3. import nextTs from "eslint-config-next/typescript";
  4. const eslintConfig = defineConfig([
  5. ...nextVitals,
  6. ...nextTs,
  7. // Override default ignores of eslint-config-next.
  8. globalIgnores([
  9. // Default ignores of eslint-config-next:
  10. ".next/**",
  11. "out/**",
  12. "build/**",
  13. "next-env.d.ts",
  14. // Claude Code worktrees contain nested .next/build artifacts from
  15. // sibling agent runs — never lint those.
  16. ".claude/**",
  17. ]),
  18. ]);
  19. export default eslintConfig;