{"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,"search_vec":"'1':47 '4.0.1':25 'check':14 'common':74 'consist':58,84 'current':23 'default':57 'ecosystem':32 'enforc':37 'esm':72 'esm-on':71 'first':55,63 'increment':50 'infer':59 'item':66 'javascript':85 'like':79 'lint':3,11,31,77,83,86,93,96 'list':5,20,67,87 'markdown':22 'marker':6,16,44,88 'must':45 'need':35 'one':38,42 'order':4,19,48,89 'part':26 'preset':78,82 'releas':33 'remark':2,10,30,81,90,92,95 'remark-lint':9,29,91 'remark-lint-ordered-list-marker-valu':1 'remark-lint-rul':94 'remark-preset-lint-consist':80 'rule':12,97,98 'sequenti':49 'singl':52 'style':41,60 'three':40 'two':65 'two-item':64 'typescript':99 'unifi':70 'use':75 'valu':7,17 'version':24 'work':68","created_at":"2026-05-01T13:49:09.826166+00:00","updated_at":"2026-05-01T13:49:09.826166+00:00","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,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":"","cli_version":null,"type":"library","homepage":null,"github":"https://github.com/remarkjs/remark-lint.git#main","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/remark-lint-ordered-list-marker-value","openapi_spec":null,"status_page":null,"smithery":null,"categories":["testing"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-05-01","next_check":"2026-07-30","install_tag":null}}