{"id":26278,"library":"remark-lint-ordered-list-marker-style","title":"remark-lint-ordered-list-marker-style","description":"A remark-lint rule (v4.0.1, ESM-only, TypeScript typed) that warns when ordered list markers in Markdown violate a configured style (dot or parenthesis). Part of the remark-lint ecosystem, it supports detecting the first style used and flagging inconsistencies. Released as part of remark-lint monorepo with consistent versioning; compatible with Node.js 16+ and integrates with unified ecosystem. Differentiators: built-in fix support, preset inclusion (consistent, markdown-style-guide, recommended), and no runtime dependencies beyond remark-lint peer.","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-style","lang":"bash","label":"npm"},{"cmd":"yarn add remark-lint-ordered-list-marker-style","lang":"bash","label":"yarn"},{"cmd":"pnpm add remark-lint-ordered-list-marker-style","lang":"bash","label":"pnpm"}],"dependencies":[],"imports":[{"note":"ESM-only; no CommonJS support since v3.","wrong":"const remarkLintOrderedListMarkerStyle = require('remark-lint-ordered-list-marker-style')","symbol":"default","correct":"import remarkLintOrderedListMarkerStyle from 'remark-lint-ordered-list-marker-style'"},{"note":"Options is a TypeScript type, not a runtime export. Use `import type`.","wrong":"import {Options} from 'remark-lint-ordered-list-marker-style'","symbol":"Options","correct":"import type {Options} from 'remark-lint-ordered-list-marker-style'"},{"note":"Style is a TypeScript type, not a runtime export.","wrong":"import {Style} from 'remark-lint-ordered-list-marker-style'","symbol":"Style","correct":"import type {Style} from 'remark-lint-ordered-list-marker-style'"}],"quickstart":{"code":"import {unified} from 'unified';\nimport remarkParse from 'remark-parse';\nimport remarkStringify from 'remark-stringify';\nimport remarkLint from 'remark-lint';\nimport remarkLintOrderedListMarkerStyle from 'remark-lint-ordered-list-marker-style';\n\nconst processor = unified()\n  .use(remarkParse)\n  .use(remarkStringify)\n  .use(remarkLint)\n  .use(remarkLintOrderedListMarkerStyle, '.'); // Enforce dot style\n\nconst md = '1. Item\\n2) Item';\nconst file = await processor.process(md);\nconsole.log(String(file));\n// Output includes warning about second marker\n","lang":"typescript","description":"Shows how to parse Markdown, lint ordered list markers with dot style, and process output."},"warnings":[{"fix":"Use `import` syntax instead of `require()`. Set `\"type\": \"module\"` in package.json or use `.mjs` extension.","message":"v3 dropped CommonJS support; package is ESM-only.","severity":"breaking","affected_versions":">=3.0.0"},{"fix":"Upgrade Node.js to version 16 or later.","message":"v4 requires Node.js 16+; older versions of Node.js are no longer supported.","severity":"breaking","affected_versions":">=4.0.0"},{"fix":"Pass options explicitly: `.use(remarkLintOrderedListMarkerStyle, '.')`.","message":"The `options` parameter default changed from `'consistent'` to `'consistent'` — no functional change, but always explicitly set options for clarity.","severity":"deprecated","affected_versions":">=1.0.0"},{"fix":"Use additional rules like `remark-lint-ordered-list-marker-value` for numbering sequence checks.","message":"The rule only checks the marker character (`.` vs `)`), not numbering sequence order or starting value.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Define a fixed style (e.g., `'.'` or `')'`) to avoid ambiguity.","message":"When using `'consistent'` option, the first ordered list marker style in the document sets the expected style; mixing styles will warn.","severity":"gotcha","affected_versions":">=0.0.0"},{"fix":"Use `'.'` or `')'` directly.","message":"The rule previously accepted `'dot'` and `'paren'` as string styles; these were removed in v1.","severity":"deprecated","affected_versions":">=0.0.0 <1.0.0"}],"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-ordered-list-marker-style` and verify that your import uses the correct ESM syntax.","cause":"Package not installed or wrong import path.","error":"Cannot find module 'remark-lint-ordered-list-marker-style'"},{"fix":"Use one of the valid styles: `'.'`, `')'`, or `'consistent'`.","cause":"Passing a non-string option (e.g., `true` or an object) to the plugin.","error":"Invalid option value: must be a string"},{"fix":"Use `import` syntax or use dynamic `import()` for CommonJS modules.","cause":"Using CommonJS `require()` to import the package, which is ESM-only.","error":"TypeError: remarkLintOrderedListMarkerStyle is not a function"},{"fix":"Add `\"type\": \"module\"` to your package.json or rename file to `.mjs`.","cause":"Missing `\"type\": \"module\"` in package.json or using `.js` instead of `.mjs`.","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}