remark-lint rule to warn when list item markers (bullets or numbers) are indented. The current stable version is 5.0.1, released as part of the remark-lint monorepo with regular updates. It enforces that list items start at column 1, preventing uncommon and hard-to-maintain indented list styles. Key differentiator: it only checks indentation of the marker itself, not content indentation, and is included in the `remark-preset-lint-recommended` preset. It is ESM-only, supports Node.js 16+, and ships TypeScript types.
npm install remark-lint-list-item-bullet-indentNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to integrate remark-lint-list-item-bullet-indent into a unified pipeline to lint a Markdown file for indented list markers.
Upgrade to Node.js 12+ and use remark-lint-list-item-bullet-indent@3+.
Switch to ESM imports: use `import` instead of `require()`. If using CommonJS, consider dynamic import or stick with version 4.
Use `import` or upgrade to 5.x pure ESM.
If you need to allow a specific indent (e.g., 2 spaces for nested list), this rule is not suitable; consider a custom plugin.
Ensure your task list items also start at column 0.
Always place `.use(remarkLint)` before this rule.
Add `'remark-lint-list-item-bullet-indent'` to the plugins array, not a shorthand.
Run `npm install remark-lint-list-item-bullet-indent` (or equivalent for yarn/pnpm).
Use `import remarkLintListItemBulletIndent from 'remark-lint-list-item-bullet-indent'` or downgrade to version 4.
Either rename file to .mjs, add `"type": "module"` to package.json, or use dynamic import().
Remove leading spaces before the marker (e.g., ` * Item` → `* Item`).
Upgrade Node.js to version 16+ or use the CJS-compatible version 4.x.