Skip to content

New CLI in eslint-plugin-ai-guard

Choose a tag to compare

@YashJadhav21 YashJadhav21 released this 09 Apr 16:50
· 72 commits to main since this release

🚀 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 patterns
  • init → Automatically set up ESLint configuration
  • doctor → Diagnose setup issues with actionable fixes
  • baseline → 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
  • strict and security presets 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