A remark-lint rule that warns when GFM autolink literals (bare URLs) are used, enforcing the use of angle-bracket autolinks or full Markdown links. Version 4.0.1 is the latest stable release, part of the remark-lint monorepo with regular updates. It is ESM-only, ships TypeScript types, and integrates with unified and remark-lint. Unlike alternatives, it specifically targets the GFM autolink literal syntax introduced by remark-gfm. Recommended for ensuring link consistency across environments where raw URLs may not be recognized.
npm install remark-lint-no-literal-urlsNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Demonstrates how to use remark-lint-no-literal-urls in a Node.js ESM environment with unified, remark-parse, remark-stringify, and remark-lint.
Switch to import syntax and ensure project uses 'type': 'module' or .mjs extension.
Consider whether the rule is still needed for your project; migrate to using remark-gfm with proper configuration if possible.
Ensure remark-gfm is used in the unified pipeline before this rule.
Use import syntax or convert your project to ESM (type: 'module' in package.json).
Install unified-lint-rule: npm install unified-lint-rule
Use default import: import remarkLintNoLiteralUrls from 'remark-lint-no-literal-urls'