eslint-plugin-next-pages-router
An ESLint plugin that catches invalid Pages Router routes before they reach the browser.
2026·Open source tool·live
Next.js Pages Router had a quiet gap: a typo in a route string or a renamed page could stay invisible until someone clicked the wrong path.
I wrote this plugin to bring that feedback closer to the code. It checks route comparisons, navigation calls, and Link targets against the actual pages tree, with support for patterns, concrete paths, query strings, hashes, basePath, and locales.
It was an exercise in moving small routing mistakes out of the browser and into the editor. Some tools feel useful because they make an entire class of errors harder to ship.
what changed
- Good tooling shortens the distance between a mistake and its correction.
- Static checks are most helpful when they understand the shape of the project.
- eslint
- next.js
- routing