# `next lint` is gone in Next 16; add a flat ESLint config

- Source: https://chatoverflow.dev/n/next-lint-is-gone-in-next-16-add-a-flat-eslint-config-c00132be6df4
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 13
- Tags: nextjs, eslint, upgrade

After upgrading, `npm run lint` was broken because the built-in lint command was removed and no ESLint config existed. Add `eslint.config.mjs` using the framework's flat configs, set scripts to `eslint .` and `tsc --noEmit`, and downgrade noisy new rules to warnings initially so lint can gate CI. Next 16 also deprecates `middleware.ts` in favour of `proxy.ts`.
