Registry / testing / remark-lint-link-title-style

remark-lint-link-title-style

JSON →
library4.0.1jsnpmunverified

Unified.js remark-lint rule to enforce a consistent style of quote marks in link, image, and definition titles. Current stable version 4.0.1, ESM-only, TypeScript types included, part of the remark-lint ecosystem with regular updates and active maintenance. Differentiators: supports 'consistent' mode (auto-detect first style) and explicit settings for double quotes, single quotes, or parentheses; included in popular presets like remark-preset-lint-consistent.

npm install remark-lint-link-title-style
INSTALL
IMPORT
SIG · REMARK-LINT-LINK-T
R
remark-lint-link-title-style
testingjavascriptv4.0.1
harness data pending
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.

remarkLintLinkTitleStyle
✓ import remarkLintLinkTitleStyle from 'remark-lint-link-title-style'
✗ const remarkLintLinkTitleStyle = require('remark-lint-link-title-style')
ESM-only since v4.0.0. Cannot use require().
remarkLintLinkTitleStyle
✓ import remarkLintLinkTitleStyle from 'remark-lint-link-title-style'
✗ import { remarkLintLinkTitleStyle } from 'remark-lint-link-title-style'
This is a default export, not a named export.
Options
✓ import type { Options } from 'remark-lint-link-title-style'
✗ import { Options } from 'remark-lint-link-title-style'
Options is a TypeScript type, use import type to avoid runtime import in production.
Style
✓ import type { Style } from 'remark-lint-link-title-style'
✗ import { Style } from 'remark-lint-link-title-style'
Style is a TypeScript type, use import type.

Set up a unified pipeline to lint markdown links for double-quote title style using remark-lint-link-title-style.

import { unified } from 'unified'; import remarkParse from 'remark-parse'; import remarkStringify from 'remark-stringify'; import remarkLint from 'remark-lint'; import remarkLintLinkTitleStyle from 'remark-lint-link-title-style'; import { read } from 'to-vfile'; import { reporter } from 'vfile-reporter'; const file = await read('example.md'); await unified() .use(remarkParse) .use(remarkLint) .use(remarkLintLinkTitleStyle, '"') .use(remarkStringify) .process(file); console.error(reporter(file));
Debug
Known issues
breakingVersion 4.0.0 dropped CommonJS support; package is now ESM-only.
fix
Use dynamic import() or convert project to ESM. Use version 3.x for CJS support.
affects: >=4.0.0
deprecatedThe 'consistent' option may produce different results across files if the first style varies; use explicit style for deterministic linting.
fix
Set options to '"' or "'" explicitly.
affects: >=1.0.0
gotchaWhen using TypeScript, import Options and Style as types only (import type) to avoid emitting runtime code.
fix
Use import type { Options } from 'remark-lint-link-title-style'.
affects: >=4.0.0
gotchaThe rule only checks link title markers, not link text or URLs. Common mistake: assuming it validates all link syntax.
fix
Use other remark-lint rules for link text (remark-lint-no-undefined-references) or URLs (remark-lint-no-url-trailing-slash).
affects: >=1.0.0
gotchaIn older Node.js versions (16+), the package may require ESM support. Not compatible with Node 14 or earlier.
fix
Upgrade to Node 16+ or use version 3.x.
affects: >=4.0.0
Errors
Common errors & fixes
ERR_MODULE_NOT_FOUND: Cannot find module 'remark-lint-link-title-style'
Trying to require() an ESM-only package.
fix
Change to import statement or use dynamic import().
The default export of 'remark-lint-link-title-style' is not a function
Using named import { remarkLintLinkTitleStyle } instead of default import.
fix
Use `import remarkLintLinkTitleStyle from 'remark-lint-link-title-style'`.
Options is not a constructor
Trying to use Options as a value instead of a type.
fix
Remove the import or use `import type { Options }`.
Upgrade
Version history
4.0.1latest on npm
Audit
Dependencies
remark-lintrequiredProvides the linting framework and reporter integration
unifiedrequiredCore unified processor required for remark-lint to work
Agent activity
4 hits · last 30 days
node
4
Resources
remark-lint-link-title-style — npm install remark-lint-link-title-style · libregistry