{"id":26279,"library":"remark-lint-ordered-list-marker-value","title":"remark-lint-ordered-list-marker-value","description":"A remark-lint rule to check the marker value of ordered lists in Markdown. Current version 4.0.1, part of the remark-lint ecosystem, released as needed. It enforces one of three styles: 'one' (all markers must be 1), 'ordered' (sequential increment), or 'single' (same as first). The default 'consistent' infers style from the first two-item list. Works with unified, ESM-only. Commonly used in lint presets like remark-preset-lint-consistent.","status":"active","version":"4.0.1","language":"javascript","source_language":"en","source_url":"https://github.com/remarkjs/remark-lint#main","tags":["javascript","lint","list","marker","ordered","remark","remark-lint","remark-lint-rule","rule","typescript"],"install":[{"cmd":"npm install remark-lint-ordered-list-marker-value","lang":"bash","label":"npm"},{"cmd":"yarn add remark-lint-ordered-list-marker-value","lang":"bash","label":"yarn"},{"cmd":"pnpm add remark-lint-ordered-list-marker-value","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"requires remark-lint to function as a linting plugin","package":"remark-lint","optional":true},{"reason":"works as a unified plugin","package":"unified","optional":true}],"imports":[{"note":"Default export; ESM-only since v4, no CommonJS support.","wrong":"const remarkLintOrderedListMarkerValue = require('remark-lint-ordered-list-marker-value')","symbol":"default","correct":"import remarkLintOrderedListMarkerValue from 'remark-lint-ordered-list-marker-value'"},{"note":"TypeScript type export, not a runtime value.","wrong":"import { Options } from 'remark-lint-ordered-list-marker-value'","symbol":"Options","correct":"import type { Options } from 'remark-lint-ordered-list-marker-value'"},{"note":"TypeScript type export; used for options configuration.","wrong":null,"symbol":"Style","correct":"import type { Style } from 'remark-lint-ordered-list-marker-value'"}],"quickstart":{"code":"import { unified } from 'unified'\nimport remarkParse from 'remark-parse'\nimport remarkStringify from 'remark-stringify'\nimport remarkLint from 'remark-lint'\nimport remarkLintOrderedListMarkerValue from 'remark-lint-ordered-list-marker-value'\n\nconst processor = unified()\n  .use(remarkParse)\n  .use(remarkStringify)\n  .use(remarkLint)\n  .use(remarkLintOrderedListMarkerValue, 'ordered')\n\nconst md = '1. Item 1\\n2. Item 2\\n'\nconst result = await processor.process(md)\nconsole.log(String(result))","lang":"typescript","description":"Demonstrates using remark-lint-ordered-list-marker-value with unified, parsing Markdown, linting with 'ordered' style, and outputting the result."},"warnings":[{"fix":"Switch to ESM imports (import statement) or downgrade to v3 if CJS is required.","message":"ESM-only: Package does not support CommonJS require() in v4+.","severity":"breaking","affected_versions":">=4.0.0"},{"fix":"Explicitly set style to 'one', 'ordered', or 'single' to avoid unexpected inference.","message":"Options: The 'consistent' option infers style from the first list with two or more items; lists with single items are ignored.","severity":"gotcha","affected_versions":"all"},{"fix":"Upgrade Node.js to 16 or later.","message":"Node version: Requires Node.js 16+; older versions may not work.","severity":"deprecated","affected_versions":">=4.0.0"},{"fix":"Ensure your environment or bundler supports ESM.","message":"No CJS support: This package is ESM-only; bundlers must handle ESM.","severity":"gotcha","affected_versions":">=4.0.0"}],"env_vars":null,"last_verified":"2026-05-01T00:00:00.000Z","next_check":"2026-07-30T00:00:00.000Z","problems":[{"fix":"Replace require() with import statement or use dynamic import().","cause":"Using CommonJS require() on an ESM-only package.","error":"Error [ERR_REQUIRE_ESM]: require() of ES Module /path/to/node_modules/remark-lint-ordered-list-marker-value/index.js from /path/to/file.js not supported."},{"fix":"Ensure you pass the plugin function directly to unified().use(), e.g., .use(remarkLintOrderedListMarkerValue, 'ordered').","cause":"Misconfigured options or forgetting to call .use() properly.","error":"TypeError: remarkLintOrderedListMarkerValue is not a function"},{"fix":"Run npm install remark-lint-ordered-list-marker-value and ensure node_modules is accessible.","cause":"Package not installed or resolution failed.","error":"Cannot find module 'remark-lint-ordered-list-marker-value'"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}