Releases

Changelog

All notable changes to this project. Follows Keep a Changelog and Semantic Versioning.


1.0.0
Latest

2026-05-07

Added

  • 4 ESLint rules for AI-assisted codebase quality:
    • max-file-lines — prevent god files (default: 300 lines)
    • max-function-lines — prevent god functions (default: 50 lines)
    • no-orphan-todos — require tracking references on TODO/FIXME/HACK
    • no-ai-obvious-comments — detect redundant comments that repeat code
  • CLI initializer (npx eslint-plugin-ai-guardrails init) with auto-detection for package managers, frameworks, vite-plugin-checker wiring, and tsconfig baseline
  • ESLint v8 support — legacy .eslintrc config via plugin:ai-guardrails/recommended
  • ESLint v9 support — flat config via aiGuardrails.flatConfigs.recommended
  • Plugin metadataplugin.meta.name and plugin.meta.version for ESLint v9
  • Lazy parser loading@typescript-eslint/parser loaded on demand to prevent crashes during installation
  • CJS/ESM interopflatConfigs accessible via both require() and import default
  • Comprehensive test suite — 60 tests covering all rules, edge cases, and plugin exports
  • Integration-tested against ESLint v8 legacy, v9 flat CJS, v9 flat ESM, and framework-specific configs
  • CI workflow — GitHub Actions with Node 18, 20, 22 matrix
  • Full documentation — rule docs, configuration guide, integrations for 7+ frameworks, troubleshooting

Changed

  • CLI config template now uses standard flat config array export (compatible with all ESLint v9 versions)
  • Version bumped from 0.1.0 to 1.0.0 for production release