
I built an ESLint plugin to fix the mess AI coding assistants leave behind
AI coding tools like Cursor , windsurf , antigravity , kiro , and more are amazing, but I got tired of seeing the same patterns over and over: God files, God functions, orphaned TODOs, and redundant comments. That productive AI sprint was turning into months of refactoring.
So I built eslint-plugin-ai-guardrails.
It’s a structure-first ESLint plugin that catches these issues before they become tech debt:
🔹 max-file-lines & max-function-lines – Warns when a file exceeds 300 lines or a function exceeds 50 lines 🔹 no-orphan-todos – Errors on // TODO or // FIXME without a tracking reference 🔹 no-ai-obvious-comments – Enforces a max comment density of 20% and filters out useless comments
It supports ESLint v8 & v9, TypeScript >=5, and includes a one‑command setup (npx eslint-plugin-ai-guardrails init) that auto‑detects your framework.
Check it out: 🔗 Website & Docs: https://eslint-ai-guardrails.vercel.app/ 💻 GitHub Repo: https://github.com/isaacnewton123/eslint-plugin-ai-guardrails
Let me know what you think! Feedback and contributions are very welcome. 🚀