Releases: ai-guard-dev/eslint-plugin-ai-guard
Release list
v1.3.0 — GitHub Marketplace Release
AI Guard v1.3.0
This release focuses on improving reliability, developer experience, and GitHub integration.
What's new
- Reduced false positives after validation against multiple real-world repositories.
- Improved
ai-guard init --yesfor one-command project setup. - Better GitHub Actions integration with SARIF output and PR annotations.
- Added FAQs, troubleshooting guides, and benchmark documentation.
- Improved self-validation and workflow reliability.
GitHub Action
Run AI Guard directly in your CI:
- uses: YashJadhav21/eslint-plugin-ai-guard@v1
with:
preset: recommendedThe Action can:
- Review changed files in pull requests
- Generate SARIF reports
- Upload results to GitHub Code Scanning
- Add inline PR annotations
- Fail builds based on severity thresholds
Package
npm install --save-dev eslint-plugin-ai-guardor
npx ai-guard init --yesResources
- GitHub: https://github.com/YashJadhav21/eslint-plugin-ai-guard
- npm: https://www.npmjs.com/package/eslint-plugin-ai-guard
Demo
Thanks to everyone who has tried AI Guard, opened discussions, shared feedback, or adopted it in their projects. Every suggestion has helped improve the rules and reduce false positives.
v1.1.12: 🤖 Proactive AI Guardrails: Stop Bad Code *Before* It's Written
AI tools are incredibly powerful, but they consistently hallucinate the same dangerous code patterns: swallowed errors, floating promises, and exposed secrets.
Until now, eslint-plugin-ai-guard caught these mistakes after the AI generated them. With v1.1.12, we are moving the defense line forward. 🛡️
We’re thrilled to introduce npx ai-guard init-context — a brand new interactive CLI command that prevents AI agents from generating these anti-patterns in the first place!
🔥 What's New?
🤖 Pre-Emptive AI Rules Generation (npx ai-guard init-context)
Automatically inject structural coding rules directly into your AI editors! This feature translates ai-guard's 17 custom ESLint rules into the specific context instructions required by modern AI tools.
Run this simple command:
```bash
npx ai-guard init-context
```
And select the agents you use. We will instantly orchestrate:
- 🧠
CLAUDE.md— Automatically steer Claude Code and Claude Desktop. - 🖱️
.cursorrules— Force Cursor IDE's chat and completions to avoid bugs. - 🐙
.github/copilot-instructions.md— Give GitHub Copilot strict guardrails.
These generated instruction files provide your AI tools with specific Never: and Always: directives along with ❌/✅ code examples, ensuring it generates safe code from the jump.
⚡ CLI Enhancements
- Added
--all,--dry-run,--force, and category-specific--rulesflags to strictly control the context initialization process. - Integrated real-time version bumping injection within generated templates.
- Polished our terminal output visuals for a crisp, premium setup aesthetic.
📖 Documentation Supercharge
- Vitepress Documentation Expanded: Added a full init-context CLI guide to the static site navigation structure.
- README Rewrite: Introduced the new
🤖 Set Up AI Agent Rulescanonical section specifically highlighting proactive context integrations right inside initialization guides.
🚀 Get Started Immediately!
Upgrade your plugin effortlessly:
npm install eslint-plugin-ai-guard@latest --save-dev npx ai-guard init-context --all
Stop fighting the same AI coding hallucinations today.
New CLI in eslint-plugin-ai-guard
🚀 eslint-plugin-ai-guard CLI Update
The new CLI in eslint-plugin-ai-guard introduces a zero-config command-line experience, allowing teams to scan projects instantly without setting up ESLint configuration first.
✨ What’s New
🛠️ New CLI Commands
The ai-guard CLI now includes practical commands for real workflows:
run→ Scan your project and report AI-risk patternsinit→ Automatically set up ESLint configurationdoctor→ Diagnose setup issues with actionable fixesbaseline→ Save current issues and track only new ones
Additional helpers:
- Presets for smoother adoption
- Ignore configuration helpers
📊 Improved Output Quality
- Human-friendly summary view
- JSON output support for CI/CD pipelines
strictandsecuritypresets for progressive enforcement
🛡️ Better Resilience
- Safely skips non-lintable patterns instead of crashing
- Clearer error handling and troubleshooting messages
🎯 Why This Matters
- ⚡ Faster onboarding for new users
- 🔇 Reduced noise during initial adoption
- 🔗 Easier CI/CD integration for production environments
🚀 Quick Start
npx ai-guard run
npx ai-guard init
npx ai-guard doctor