ESLint plugin limiting comment line length to improve readability. Version 2.3.1, maintained, actively updated. Provides rules like 'comment-length/max-len' and 'comment-length/reflow' to enforce max length in comments, including options for block vs line comments. Works with ESLint >=8.0.0, ships TypeScript types. Key differentiator: focuses solely on comment formatting, unlike general max-len rules which affect code.
npm install eslint-plugin-comment-lengthNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures ESLint to enforce max line length in comments (80 chars) and auto-fix comment reflow, using the comment-length plugin.
Update rule names to include the plugin prefix 'comment-length/'
Update to v2.3.1: npm install eslint-plugin-comment-length@latest
Review auto-fix changes before applying; consider using 'suggest' mode first
Ensure ESLint version is 8 or higher
Run: npm install eslint-plugin-comment-length --save-dev
Use: 'comment-length/max-len': ['error', { maxLen: 80, commentsOnly: true }]Use require syntax for CommonJS or install babel-eslint for ES modules