A remark-lint rule that warns when file names start or end with dashes. Current stable version is 3.0.1, compatible with Node.js 16+. It is part of the remark-lint ecosystem and is ESM-only. This rule helps enforce consistent file naming conventions by flagging leading or trailing hyphens, which are often unintended. It is included in the `remark-preset-lint-markdown-style-guide` preset. Releases follow the unified collective's schedule with occasional patches across all packages.
npm install remark-lint-no-file-name-outer-dashesNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to use the rule in Node.js with unified to detect leading dashes in a filename.
Use import instead of require. For older Node.js, use dynamic import or migrate to ESM.
Upgrade Node.js to version 16 or higher.
Upgrade Node.js to 16+.
Run 'npm install remark-lint-no-file-name-outer-dashes' and ensure correct import statement.
Change to import statement: import remarkLintNoFileNameOuterDashes from 'remark-lint-no-file-name-outer-dashes'