Skip to content

Commit ff0188d

Browse files
Juan Pelaezclaude
andcommitted
fix(nextjs): add ESLint config to fix CI lint step
Next.js 15+ deprecates `next lint` and prompts interactively without an existing ESLint config, causing CI failures. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent c7fc5cb commit ff0188d

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

nextjs/eslint.config.mjs

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import { dirname } from "path";
2+
import { fileURLToPath } from "url";
3+
import { FlatCompat } from "@eslint/eslintrc";
4+
5+
const __filename = fileURLToPath(import.meta.url);
6+
const __dirname = dirname(__filename);
7+
8+
const compat = new FlatCompat({
9+
baseDirectory: __dirname,
10+
});
11+
12+
const eslintConfig = [
13+
...compat.extends("next/core-web-vitals", "next/typescript"),
14+
];
15+
16+
export default eslintConfig;

0 commit comments

Comments
 (0)