{"library":"remark-lint-no-duplicate-defined-urls","title":"remark-lint-no-duplicate-defined-urls","description":"A remark-lint rule that warns when the same URL is defined multiple times in Markdown definitions. Current stable version is 3.0.1. It is part of the remark-lint ecosystem, focusing on detecting duplicate URLs to prevent mistakes. Unlike other lint rules that check for unused definitions, this targets duplicate URLs. It is ESM-only and requires Node.js 16+. Released as part of the remark-lint monorepo with regular updates.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install remark-lint-no-duplicate-defined-urls"],"cli":null},"imports":["import remarkLintNoDuplicateDefinedUrls from 'remark-lint-no-duplicate-defined-urls'","import remarkLintNoDuplicateDefinedUrls from 'remark-lint-no-duplicate-defined-urls'","import type { Transformer } from 'unified'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import remarkLint from 'remark-lint'\nimport remarkLintNoDuplicateDefinedUrls from 'remark-lint-no-duplicate-defined-urls'\nimport remarkParse from 'remark-parse'\nimport remarkStringify from 'remark-stringify'\nimport { read } from 'to-vfile'\nimport { unified } from 'unified'\nimport { reporter } from 'vfile-reporter'\n\nconst file = await read('example.md')\n\nawait unified()\n  .use(remarkParse)\n  .use(remarkLint)\n  .use(remarkLintNoDuplicateDefinedUrls)\n  .use(remarkStringify)\n  .process(file)\n\nconsole.error(reporter(file))","lang":"typescript","description":"Set up remark-lint with the no-duplicate-defined-urls rule, parse a Markdown file, and report any lint messages.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}