{"id":26196,"library":"remark-lint-checkbox-content-indent","title":"remark-lint-checkbox-content-indent","description":"remark-lint rule to warn when GFM tasklist checkboxes are followed by more than one space. Current stable version is 5.0.1 (as of early 2025), part of the remark-lint ecosystem. Unlike general Markdown linters, this rule is narrowly scoped to enforce consistent indentation after `[ ]` or `[x]` in task list items. It is ESM-only, ships TypeScript types, and integrates with remark's unified pipeline and CLI. No options. Alternatives like markdownlint have similar rules but remark-lint rules are composable with the remark ecosystem.","status":"active","version":"5.0.1","language":"javascript","source_language":"en","source_url":"https://github.com/remarkjs/remark-lint#main","tags":["javascript","checkbox","content","lint","list","remark","remark-lint","remark-lint-rule","rule","typescript"],"install":[{"cmd":"npm install remark-lint-checkbox-content-indent","lang":"bash","label":"npm"},{"cmd":"yarn add remark-lint-checkbox-content-indent","lang":"bash","label":"yarn"},{"cmd":"pnpm add remark-lint-checkbox-content-indent","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core unified processor infrastructure required","package":"unified","optional":false},{"reason":"Provides the linting framework and message reporting","package":"remark-lint","optional":false},{"reason":"Parses Markdown into AST for linting","package":"remark-parse","optional":true},{"reason":"Serializes AST back to Markdown; required for fixing","package":"remark-stringify","optional":true},{"reason":"Supports GFM task list items; required for proper parsing of checkbox content","package":"remark-gfm","optional":true}],"imports":[{"note":"ESM-only since initial release. CommonJS require is not supported.","wrong":"const remarkLintCheckboxContentIndent = require('remark-lint-checkbox-content-indent')","symbol":"remarkLintCheckboxContentIndent","correct":"import remarkLintCheckboxContentIndent from 'remark-lint-checkbox-content-indent'"}],"quickstart":{"code":"import { unified } from 'unified';\nimport remarkParse from 'remark-parse';\nimport remarkStringify from 'remark-stringify';\nimport remarkLint from 'remark-lint';\nimport remarkLintCheckboxContentIndent from 'remark-lint-checkbox-content-indent';\nimport remarkGfm from 'remark-gfm';\nimport { reporter } from 'vfile-reporter';\n\nconst file = await unified()\n  .use(remarkParse)\n  .use(remarkGfm)\n  .use(remarkLint)\n  .use(remarkLintCheckboxContentIndent)\n  .use(remarkStringify)\n  .process('- [x]  Too many spaces after checkbox\\n');\n\nconsole.error(reporter(file));\n// Output: 1:8: Unexpected `2` spaces between checkbox and content, expected `1` space, remove `1` space","lang":"typescript","description":"Lints a Markdown string for excessive whitespace after GFM tasklist checkboxes using remark. Shows how to set up unified pipeline with GFM support, lint rule, and report messages."},"warnings":[{"fix":"Use import syntax or dynamic import, or use a CJS bundler transformation.","message":"Package is ESM-only; no CommonJS support","severity":"breaking","affected_versions":">=1.0.0"},{"fix":"Install remark-gfm and add .use(remarkGfm) before .use(remarkLintCheckboxContentIndent)","message":"Requires remark-gfm to parse task lists; without it, rule does not apply","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"Pass options to remark-lint plugin, not directly to this rule.","message":"Rule has no options; all configuration must be done via remark-lint's options mechanism","severity":"gotcha","affected_versions":">=1.0.0"},{"fix":"","message":"None at this time","severity":"deprecated","affected_versions":""}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Run 'npm install remark-lint-checkbox-content-indent' and ensure package.json has 'type': 'module' or use .mjs extension.","cause":"Package not installed or misconfigured in Node.js (especially with ESM imports)","error":"Cannot find module 'remark-lint-checkbox-content-indent'"},{"fix":"Add 'type': 'module' to package.json or use .mjs file extension.","cause":"Trying to use ESM import in a CommonJS context","error":"Cannot use import statement outside a module"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}