remark-lint rule (v4.0.1, ESM-only) from the remark-lint monorepo that warns when consecutive whitespace (more than one space or non-space whitespace) is used in a definition label. Published as part of the remark-lint ecosystem, it ensures definition label whitespace consistency. Unlike general markdown linters, this rule is specific to definition labels and is included in the remark-preset-lint-markdown-style-guide preset.
npm install remark-lint-definition-spacingNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use the rule with unified: parse markdown, apply the lint rule, stringify, and report messages.
Switch to ESM imports (import ... from ...). For CommonJS, use dynamic import() or stick to version 3.x.
Update TypeScript to 5.0+ or use a version with supported module resolution.
No fix needed; it's by design.
Run `npm install remark-lint-definition-spacing` and ensure you use ESM import syntax.
Use `import remarkLintDefinitionSpacing from 'remark-lint-definition-spacing'`.
Update Node.js to >=16 or use `--experimental-modules` flag (older versions), or use dynamic import.