eslint-plugin-write-good-comments-2
eslint-plugin-write-good-comments-2 improves source comments with
write-good,
retext-equality,
retext-profanities,
retext-spell,
retext-readability, and
descriptive task-comment enforcement so vague, inconsiderate, misspelled, or
hard-to-read comment text is caught before it spreads through a codebase.
Installation
npm install --save-dev eslint-plugin-write-good-comments-2
Quick start
import writeGoodComments from "eslint-plugin-write-good-comments-2";
export default [writeGoodComments.configs.recommended];
Presets
| Preset | Preset page |
|---|---|
🟡 writeGoodComments.configs.recommended | Recommended |
🟣 writeGoodComments.configs.all | All |
Shipped rules
write-good-comments— runwrite-goodagainst normal source comment prose.task-comment-format— require TODO-style task comments to include a descriptive body.inclusive-language-comments— require source comments to avoid exclusionary or inconsiderate language.no-profane-comments— disallow profane wording in source comments.spellcheck-comments— spellcheck comment prose with a curated technical vocabulary.readability-comments— flag comment sentences that are unnecessarily hard to read.
Next steps
- Open Getting Started in this sidebar for installation + usage details.
- Browse Presets for preset-by-preset guidance.
- Use Rules to review each shipped rule with examples and options.