{"id":26226,"library":"remark-lint-list-item-content-indent","title":"remark-lint-list-item-content-indent","description":"remark-lint rule (v4.0.1, latest) that warns when list item content has inconsistent indentation. It checks the first child of each list item and flags subsequent children that do not align with it. This is part of the remark-lint ecosystem, ESM-only, ships TypeScript types. Key differentiator: it catches mixed indentation in multi-line list items, helping maintain consistent Markdown formatting. Compatible with Node.js 16+ and modern browsers via esm.sh.","status":"active","version":"4.0.1","language":"javascript","source_language":"en","source_url":"https://github.com/remarkjs/remark-lint#main","tags":["javascript","content","indent","item","lint","list","remark","remark-lint","remark-lint-rule","typescript"],"install":[{"cmd":"npm install remark-lint-list-item-content-indent","lang":"bash","label":"npm"},{"cmd":"yarn add remark-lint-list-item-content-indent","lang":"bash","label":"yarn"},{"cmd":"pnpm add remark-lint-list-item-content-indent","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Unified ecosystem required for linting","package":"unified","optional":false},{"reason":"Core linting plugin that this rule extends","package":"remark-lint","optional":false},{"reason":"Parse Markdown into AST for linting","package":"remark-parse","optional":false},{"reason":"Serialize back after linting (optional for linting alone)","package":"remark-stringify","optional":true}],"imports":[{"note":"ESM-only since v4. CommonJS require will fail","wrong":"const remarkLintListItemContentIndent = require('remark-lint-list-item-content-indent')","symbol":"remarkLintListItemContentIndent","correct":"import remarkLintListItemContentIndent from 'remark-lint-list-item-content-indent'"},{"note":"Default export, not named","wrong":"import { remarkLint } from 'remark-lint'","symbol":"remarkLint","correct":"import remarkLint from 'remark-lint'"},{"note":"Default export in earlier versions, named export since unified@11","symbol":"unified","correct":"import { unified } from 'unified'"}],"quickstart":{"code":"import remarkLint from 'remark-lint'\nimport remarkLintListItemContentIndent from 'remark-lint-list-item-content-indent'\nimport remarkParse from 'remark-parse'\nimport remarkStringify from 'remark-stringify'\nimport { read } from 'to-vfile'\nimport { unified } from 'unified'\nimport { reporter } from 'vfile-reporter'\n\nconst file = await read('example.md')\n\nawait unified()\n  .use(remarkParse)\n  .use(remarkLint)\n  .use(remarkLintListItemContentIndent)\n  .use(remarkStringify)\n  .process(file)\n\nconsole.error(reporter(file))","lang":"typescript","description":"Shows how to use the rule programmatically with unified: parse Markdown, lint for list item content indent issues, stringify back, and report messages."},"warnings":[{"fix":"Use import or dynamic import(). For CommonJS projects, use a bundler or stay on v3.","message":"Package is ESM-only since v4. Requiring with require() throws an error.","severity":"breaking","affected_versions":">=4.0.0"},{"fix":"Update import to match new export name: import remarkLintListItemContentIndent from 'remark-lint-list-item-content-indent'","message":"In v3, the rule was called 'remark-lint-list-item-content-indent' but the exported function name was 'listItemContentIndent'. In v4, the export is 'remarkLintListItemContentIndent'.","severity":"deprecated","affected_versions":">=3.0.0 <4.0.0"},{"fix":"If you need different behavior, consider a custom rule or disabling this rule and using another method.","message":"Unlike some lint rules, this rule has no configuration options. It always checks consistent indentation, which may be too strict for some projects.","severity":"gotcha","affected_versions":"*"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"npm install remark-lint-list-item-content-indent","cause":"Package is not installed or typo in package name","error":"Cannot find module 'remark-lint-list-item-content-indent'"},{"fix":"Use import instead, or set type:\"module\" in package.json","cause":"Using require() to import an ESM-only package in v4+","error":"ERR_REQUIRE_ESM"},{"fix":"Use default import: import remarkLintListItemContentIndent from 'remark-lint-list-item-content-indent'","cause":"Wrong import style: using named import instead of default import","error":"remark-lint-list-item-content-indent is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}