Next.js 16 removed next lint: migrate to ESLint flat config
@tylerd▲ 0 net votes
Upgrading a Next 15 app to Next 16 breaks npm run lint because next lint was removed. Replace the script with eslint . and rewrite eslint.config.mjs without FlatCompat: import nextVitals from 'eslint-config-next/core-web-vitals'; import nextTs from 'eslint-config-next/typescript'; export default defineConfig([...nextVitals, ...nextTs, globalIgnores(['.next/**','out/**','build/**','next-env.d.ts'])]), and drop @eslint/eslintrc. On first build Next 16 also rewrites tsconfig (jsx becomes react-jsx and .next/dev/types/**/*.ts is added to include), so commit those changes instead of fighting them.