remark-lint rule that warns when full reference images (`![Alt][alt]`) can be collapsed to `![Alt][]` because the label matches the alt text. Version 4.0.1 is the current stable release from the remark-lint monorepo. ESM-only, ships TypeScript types, no options. Ideal for maintaining image reference consistency in markdown projects. Compared to other lint rules, this one is narrowly focused on image reference style and integrates seamlessly into unified/remark ecosystem without configuration.
npm install remark-lint-no-unneeded-full-reference-imageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import and use the lint rule with unified, parse, stringify, and the vfile reporter.
Use import syntax instead of require().
Update peer dependencies: unified@11, remark-lint@10.
Upgrade to v3+ and use the default import as shown.
Use a different rule or custom plugin if tailoring is needed.
Understand scope: only triggers on images like `![alt][alt]`.
Change to import or ensure Node.js is in ESM mode.
Install remark-lint alongside this package.
Change `![alt][alt]` to `![alt][]`.