Sabitlenmiş Tweet

Made an ESLint plugin for catching duplicate API routes
I've run into this issue more times than I'd like to admit, spending hours debugging why routes aren't working, only to discover I have:
- GET /users/:id (file A)
- GET /users/:userId (file B)
They're the same route, just with different param names. Which one actually runs? Depends on which file loads first.
Standard ESLint doesn't catch this, so I built a plugin that does.
It scans your entire codebase, understands router prefixes (app.use('/api', router)), and normalizes param names so: id and: userId are flagged as conflicts.
Works with Express, Fastify, and NestJS.
Just published it would love feedback from anyone working on larger APIs where this slips through code review.
npm install --save-dev eslint-plugin-route-guard
npmjs.com/package/eslint…
Hope this saves someone else the debugging headache.
English














