Registry /
testing / remark-lint-no-shortcut-reference-link
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.
remarkLintNoShortcutReferenceLink
✓ import remarkLintNoShortcutReferenceLink from 'remark-lint-no-shortcut-reference-link'
✗ const remarkLintNoShortcutReferenceLink = require('remark-lint-no-shortcut-reference-link')
Package is ESM-only since v4; no CJS support. In Node.js 16+, use import.
No default export; use default export
✓ import remarkLintNoShortcutReferenceLink from 'remark-lint-no-shortcut-reference-link'
✗ import { remarkLintNoShortcutReferenceLink } from 'remark-lint-no-shortcut-reference-link'
The package exports a single default function, not a named export.
TypeScript types
✓ import type { Plugin } from 'unified'; import remarkLintNoShortcutReferenceLink from 'remark-lint-no-shortcut-reference-link'
Types are included; no separate @types package needed.
Lints Markdown with the shortcut-reference-link rule using unified pipeline.
import remarkLint from 'remark-lint'
import remarkLintNoShortcutReferenceLink from 'remark-lint-no-shortcut-reference-link'
import remarkParse from 'remark-parse'
import remarkStringify from 'remark-stringify'
import {unified} from 'unified'
import {reporter} from 'vfile-reporter'
const file = await unified()
.use(remarkParse)
.use(remarkLint)
.use(remarkLintNoShortcutReferenceLink)
.use(remarkStringify)
.process('[Mercury]\n\n[mercury]: https://example.com/mercury/')
console.error(reporter(file))
Errors
Common errors & fixes
Cannot find module 'remark-lint-no-shortcut-reference-link'
Package not installed or ESM-only import used in CJS context.
fixInstall: npm install remark-lint-no-shortcut-reference-link. If using require, switch to import or use dynamic import().
SyntaxError: Unexpected identifier 'remarkLintNoShortcutReferenceLink'
Using import statement in a non-ESM file (no type:module or .mjs extension).
fixSet type: "module" in package.json or rename file to .mjs.
TypeError: remarkLintNoShortcutReferenceLink is not a function
Trying to use the rule without unified, or passing options incorrectly.
fixUse .use(remarkLintNoShortcutReferenceLink) without arguments (rule accepts no options).
No warnings emitted even for shortcut reference links
Missing remark-lint plugin itself; rules are inactive without it.
fixAdd .use(remarkLint) before the rule.
Audit
Dependencies
unifiedrequiredPeer dependency; remark-lint rules are unified plugins.
remark-lintrequiredRequired to use remark-lint rules; this package is a rule for remark-lint.
remark-parseoptionalNeeded to parse Markdown; typically used in the pipeline.
remark-stringifyoptionalNeeded to stringify Markdown; typically used in the pipeline.