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.
npm install remark-lint-final-definitionNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use remark-lint-final-definition in a unified pipeline to lint definitions placement in Markdown files.
Migrate to ESM or use dynamic import(). Ensure your project is configured for ESM (such as type: 'module' in package.json).
Upgrade to version 4.x and follow ESM migration.
Ensure remarkLint is used before remarkLintFinalDefinition in the unified pipeline.
Place definitions strictly at the end of the file, after all comments.
Use the --frail option to exit with a non-zero code on warnings.
Install the package with 'npm install remark-lint-final-definition'. If using CommonJS, switch to ESM or use dynamic import.
Add '"type": "module"' to your package.json or rename files to .mjs.
Use 'import remarkLintFinalDefinition from 'remark-lint-final-definition'' (default import).