Registry /
testing / remark-lint-unordered-list-marker-style
Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
remarkLintUnorderedListMarkerStyle
✓ import remarkLintUnorderedListMarkerStyle from 'remark-lint-unordered-list-marker-style'
✗ const remarkLintUnorderedListMarkerStyle = require('remark-lint-unordered-list-marker-style')
ESM-only since v4; CommonJS require() will fail. This is the default export.
Options
✓ import type { Options } from 'remark-lint-unordered-list-marker-style'
✗ import { Options } from 'remark-lint-unordered-list-marker-style'
Options is a TypeScript type; use type import to avoid runtime errors.
Style
✓ import type { Style } from 'remark-lint-unordered-list-marker-style'
✗ import { Style } from 'remark-lint-unordered-list-marker-style'
Style is a TypeScript type; use type import to avoid runtime errors.
Lints an MD file enforcing asterisk markers for unordered lists, reporting any violations.
import { unified } from 'unified'
import remarkParse from 'remark-parse'
import remarkLint from 'remark-lint'
import remarkStringify from 'remark-stringify'
import remarkLintUnorderedListMarkerStyle from 'remark-lint-unordered-list-marker-style'
import { reporter } from 'vfile-reporter'
import { read } from 'to-vfile'
const file = await unified()
.use(remarkParse)
.use(remarkLint)
.use(remarkLintUnorderedListMarkerStyle, '*') // enforce asterisk markers
.use(remarkStringify)
.process(await read('example.md'))
console.error(reporter(file))
Errors
Common errors & fixes
ERR_REQUIRE_ESM
Using CommonJS require() on this ESM-only package.
fixChange to import statement: import remarkLintUnorderedListMarkerStyle from 'remark-lint-unordered-list-marker-style'
Error: Cannot find module 'remark-lint'
Missing peer dependency remark-lint.
fixnpm install remark-lint
TypeError: options is not iterable
Passing invalid options type (e.g., array instead of string).
fixEnsure options is one of: '*', '+', '-', or 'consistent'. Example: .use(remarkLintUnorderedListMarkerStyle, '*')
Audit
Dependencies
remark-lintrequiredPeer dependency: remark-lint is required to enable the linting framework; this rule runs as a plugin within it.
unifiedrequiredUnified is the underlying processing chain; the rule is a unified plugin.
remark-parseoptionalRequired for parsing Markdown into AST; needed when using the API programmatically.
remark-stringifyoptionalRequired for stringifying Markdown; used to apply fixes or output the processed file.