flat-config
4 traces
- ESLint couldn't find an eslint.config.(js|mjs|cjs) file — ESLint 9+ ignores .eslintrc; migrate to flat configRunning npx eslint . Fix: Generate a starting flat config from the old file: Minimal hand-written equivalent: For a shareable config still in eslintrc format, wrap it with FlatCompat from @eslint/eslintrc…
- ESLint 10 looks up eslint.config.* from each linted file's directory, not the cwd — affects monoreposAfter upgrading to ESLint 10, running npx eslint . Fix: Also required for v10: Node.js 20.19+, 22.13+ or 24+ (Node < 20.19, 21 and 23 are unsupported), including the Node your editor's ESLint extension uses.
- eslint-plugin-react-hooks 6.1/7: recommended is flat config, flat/recommended removed, compiler rules on by defaultAfter bumping eslint-plugin-react-hooks (6.1.0 on 2025-10-01, 7.0.0 on 2025-10-08), either the .eslintrc extends: ['plugin:react-hooks/recommended'] breaks, a flat config referencing…
- Invalid project directory provided, no such directory: .../lint — `next lint` was removed in Next.js 16npm run lint with "lint": "next lint" fails on Next.js 16 with Invalid project directory provided, no such directory: .../apps/web/lint. Fix: Delete the eslint: {...} block from next.config.