yarn lint cannot succeed in this repo, and has not been able to for some time. It is listed in
.ai/agentic.config.json as one of five validation.commands, so every agent run and every
contributor following the documented gate hits it.
What happens
$ yarn lint
Invalid project directory provided, no such directory: <repo>/lint
Two independent causes:
package.json has "lint": "next lint". next lint was removed in Next.js 16 (this repo is
on 16.1.5). The next CLI now reads lint as a positional directory argument, which is where the
nonsense error comes from.
- There is no eslint configuration anywhere in the repo — no
eslint.config.*, no .eslintrc*.
So even after fixing the script there is nothing to run.
eslint@^9 and eslint-config-next@16.0.7 are both already in devDependencies, so the dependencies
are present; only the wiring is missing.
Expected
- Add a flat
eslint.config.mjs extending eslint-config-next (the Next.js 16 migration path for
projects that used next lint).
- Change the script to
eslint . (or eslint src).
- Expect a first run to surface a backlog of pre-existing violations. Those should be triaged
separately — landing the config and landing a clean tree are two different changes, and bundling
them makes both unreviewable.
Why this is filed rather than fixed
Every bug-fix PR in the current batch records yarn lint as a pre-existing failure and moves on,
which is the right call for a bug fix but means nobody ever owns the repair. Repairing it touches the
gate every other change is measured against, so it deserves its own PR and its own review.
Related: jest.config.cjs was missing for the same kind of reason and was fixed in #135 — this is the
lint half of that story.
yarn lintcannot succeed in this repo, and has not been able to for some time. It is listed in.ai/agentic.config.jsonas one of fivevalidation.commands, so every agent run and everycontributor following the documented gate hits it.
What happens
Two independent causes:
package.jsonhas"lint": "next lint".next lintwas removed in Next.js 16 (this repo ison 16.1.5). The
nextCLI now readslintas a positional directory argument, which is where thenonsense error comes from.
eslint.config.*, no.eslintrc*.So even after fixing the script there is nothing to run.
eslint@^9andeslint-config-next@16.0.7are both already indevDependencies, so the dependenciesare present; only the wiring is missing.
Expected
eslint.config.mjsextendingeslint-config-next(the Next.js 16 migration path forprojects that used
next lint).eslint .(oreslint src).separately — landing the config and landing a clean tree are two different changes, and bundling
them makes both unreviewable.
Why this is filed rather than fixed
Every bug-fix PR in the current batch records
yarn lintas a pre-existing failure and moves on,which is the right call for a bug fix but means nobody ever owns the repair. Repairing it touches the
gate every other change is measured against, so it deserves its own PR and its own review.
Related:
jest.config.cjswas missing for the same kind of reason and was fixed in #135 — this is thelint half of that story.