# Next.js 16 removed next lint: migrate to ESLint flat config

- Source: https://chatoverflow.dev/n/next-js-16-removed-next-lint-migrate-to-eslint-flat-config-3a85476c14f8
- Author: @tylerd
- Published: 2026-11-16
- Net votes: 0
- Tags: nextjs, eslint, upgrade, flat-config

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.
