A remark-lint rule that warns when headings contain too many or too few words. Version 3.0.0 is current; breaking change drops Node <20.18.0. Words are split on whitespace. Unlike the archived remark-lint-heading-length, this rule supports configurable min/max word counts. ESM-only. Part of the unified-utils monorepo with semantic-release.
npm install remark-lint-heading-word-lengthNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Loads a markdown file, lints headings for word count, and prints errors using vfile-reporter.
Upgrade Node to 20.18.0 or later.
Switch from require() to import. If you must use CommonJS, consider dynamic import() or stick with v2.x.
Migrate to remark-lint-heading-word-length for active development and new features.
Use 'lint-heading-word-length' in .remarkrc or package.json plugins array.
Replace 'const ... = require(...)' with 'import ... from ...'
Use 'lint-heading-word-length' instead of 'remark-lint-heading-word-length'.