ESLint plugin providing lint rules to validate and auto-correct code based on JSDoc-like annotations in comments. Current stable version 1.1.6, released 2023. Supports Node 12, 14, 16+. Differentiators: allows enforcing sort order, uniqueness, and date format via annotation comments, with autofix support for sort and unique rules. Lightweight, no external runtime dependencies beyond ESLint peer dependency.
npm install eslint-plugin-annotationNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows ESLint config to enable all four rules and optional programmatic usage import.
Add the appropriate annotation comment above the target code block.
Use --fix-dry-run to preview changes.
Upgrade Node to supported version.
Run 'npm install eslint-plugin-annotation --save-dev'
Update ESLint to version 8 or later: 'npm install eslint@latest --save-dev'
Ensure annotation comment is on its own line above the target, e.g., '// @sort' or '/* @sort */'