{"id":26229,"library":"remark-lint-list-item-style","title":"remark-lint-list-item-style","description":"A remark-lint rule that warns when list items violate a given capitalization or punctuation style. Version 3.0.1 is the current stable release, part of the unified-utils monorepo with active maintenance. It picks up where the abandoned remark-lint-list-item-punctuation left off, offering full unicode support and configurable options for checking first-letter capitalization, punctuation, and paragraph spread. Requires Node.js >=20.18.0 and is ESM-only. It is used with remark-lint to enforce consistent list item styling across Markdown documents.","status":"active","version":"3.0.1","language":"javascript","source_language":"en","source_url":"https://github.com/Xunnamius/unified-utils","tags":["javascript","remark","remark-plugin","plugin","markdown","remark-lint","lint","rule","remark-lint-rule"],"install":[{"cmd":"npm install remark-lint-list-item-style","lang":"bash","label":"npm"},{"cmd":"yarn add remark-lint-list-item-style","lang":"bash","label":"yarn"},{"cmd":"pnpm add remark-lint-list-item-style","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Core dependency for defining remark-lint rules","package":"unified-lint-rule","optional":false},{"reason":"Peer dependency required to register lint messages","package":"remark-lint","optional":false}],"imports":[{"note":"ESM-only since v3.0.0; cannot be require'd. Default import provides the plugin function.","wrong":"const remarkLintListItemStyle = require('remark-lint-list-item-style')","symbol":"remarkLintListItemStyle","correct":"import remarkLintListItemStyle from 'remark-lint-list-item-style'"},{"note":"In ESM config files, import the default export and use it as a function, not a string.","wrong":"module.exports = { plugins: ['remark-lint-list-item-style'] }","symbol":"remarkLintListItemStyle (in .remarkrc.mjs)","correct":"import remarkLintListItemStyle from 'remark-lint-list-item-style';\nexport default { plugins: [remarkLintListItemStyle] }"},{"note":"The CLI plugin name is 'lint-list-item-style' (not 'remark-lint-list-item-style').","wrong":"remark --use remark-lint --use remark-lint-list-item-style README.md","symbol":"remarkLintListItemStyle (in CLI)","correct":"remark --use remark-lint --use lint-list-item-style README.md"}],"quickstart":{"code":"import { read } from 'to-vfile';\nimport { reporter } from 'vfile-reporter';\nimport { remark } from 'remark';\nimport remarkLint from 'remark-lint';\nimport remarkLintListItemStyle from 'remark-lint-list-item-style';\n\nconst file = await remark()\n  .use(remarkLint)\n  .use(remarkLintListItemStyle, { punctuation: '.', firstWord: true, spread: 'each' })\n  .process(await read('example.md'));\n\nconsole.log(reporter(file));","lang":"typescript","description":"Shows how to use the plugin with remark to lint list items for punctuation, capitalization, and paragraph spread."},"warnings":[{"fix":"Upgrade Node.js to >=20.18.0.","message":"Minimum supported Node.js version is now 20.18.0. Older versions are no longer supported.","severity":"breaking","affected_versions":">=3.0.0"},{"fix":"Use import syntax instead of require(). If using CommonJS, consider dynamic import().","message":"Package is now ESM-only since v3.0.0. Using CommonJS require() will fail with ERR_REQUIRE_ESM.","severity":"breaking","affected_versions":">=3.0.0"},{"fix":"Use 'firstWord' as documented for this version; future versions may adopt 'capitalize'.","message":"The option 'firstWord' has been renamed to 'capitalize' in some related packages; check docs for compatibility.","severity":"deprecated","affected_versions":">=3.0.0"},{"fix":"Use '--use lint-list-item-style' in remark-cli.","message":"The CLI plugin name is 'lint-list-item-style', not 'remark-lint-list-item-style'. Using the full name will not be recognized.","severity":"gotcha","affected_versions":"*"},{"fix":"Upgrade to v3.0.1 or later to fix detection for formatted list items.","message":"The rule checks the first letter of bold, italic, and struck-through items correctly only since v3.0.1. Prior versions may miss these cases.","severity":"gotcha","affected_versions":"<3.0.1"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Switch to import syntax or use dynamic import: const mod = await import('remark-lint-list-item-style')","cause":"Using CommonJS require() on an ESM-only package (v3.0.0+).","error":"Error [ERR_REQUIRE_ESM]: require() of ES Module"},{"fix":"In CLI, use 'lint-list-item-style'. In .remarkrc, use 'remark-lint-list-item-style' as a string or import.","cause":"Plugin name used incorrectly in remark-cli or config.","error":"Cannot find module 'remark-lint-list-item-style'"},{"fix":"Use default import: import remarkLintListItemStyle from 'remark-lint-list-item-style'","cause":"Importing the wrong symbol. The package exports a default function, not a named export.","error":"TypeError: remarkLintListItemStyle is not a function"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}