{"library":"remark-lint-heading-length","title":"remark-lint-heading-length","description":"A remark-lint rule to enforce a minimum and maximum number of words in headings in Markdown files. Version 1.0.0 is the current stable release, based on the unified ecosystem. It allows configuration of min and max word counts, with defaults of 2 and 10 respectively. Unlike generic linters, this rule is specific to heading length and integrates seamlessly with remark-lint presets.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install remark-lint-heading-length"],"cli":null},"imports":["import remarkLintHeadingLength from 'remark-lint-heading-length'","import remarkLintHeadingLength from 'remark-lint-heading-length'","import { remarkLint } from 'remark-lint'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { remark } from 'remark';\nimport remarkLint from 'remark-lint';\nimport remarkLintHeadingLength from 'remark-lint-heading-length';\n\nconst file = await remark()\n  .use(remarkLint)\n  .use(remarkLintHeadingLength, ['error', { min: 3, max: 12 }])\n  .process('# Too short');\n\nconsole.log(file.messages); // Message: Heading must have at least 3 words","lang":"javascript","description":"Configures remark-lint with the heading-length rule, then processes a Markdown string to show linting output.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}