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