{"library":"remark-lint-final-definition","title":"remark-lint-final-definition","description":"A remark-lint rule that warns when Markdown definitions (e.g., [label]: url) are placed inside the document body instead of at the end. Current stable version is 4.0.2. Part of the remark-lint ecosystem, it helps enforce consistent placement of definitions, typically at the bottom of files. This package is ESM-only, ships TypeScript types, and requires Node.js 16+. Unlike general Markdown linters, it focuses specifically on definition positioning and integrates seamlessly with unified and remark pipelines.","language":"javascript","status":"active","last_verified":"Fri May 01","install":{"commands":["npm install remark-lint-final-definition"],"cli":null},"imports":["import remarkLintFinalDefinition from 'remark-lint-final-definition'","import remarkLintFinalDefinition from 'remark-lint-final-definition'","import type { Transformer } from 'unified'"],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"import { unified } from 'unified';\nimport remarkParse from 'remark-parse';\nimport remarkStringify from 'remark-stringify';\nimport remarkLint from 'remark-lint';\nimport remarkLintFinalDefinition from 'remark-lint-final-definition';\nimport { read } from 'to-vfile';\nimport { reporter } from 'vfile-reporter';\n\nconst file = await read('example.md');\n\nawait unified()\n  .use(remarkParse)\n  .use(remarkLint)\n  .use(remarkLintFinalDefinition)\n  .use(remarkStringify)\n  .process(file);\n\nconsole.error(reporter(file));","lang":"typescript","description":"Shows how to use remark-lint-final-definition in a unified pipeline to lint definitions placement in Markdown files.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}