A remark-lint rule that warns when Markdown file names contain characters outside a configurable allowed set (default: alphanumeric, dash, dot). Current stable version is 3.0.1. It is part of the unified/remark ecosystem, maintained by the remark organization, and follows semantic versioning. Key differentiator: allows custom regex patterns to define which characters are irregular, enabling project-specific naming conventions. Supports ESM only, Node.js 16+, and TypeScript types.
npm install remark-lint-no-file-name-irregular-charactersNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures remark with the lint rule to check file names for irregular characters, processes a Markdown file, and reports messages.
Use import syntax instead of require(). If you need CJS, stick with version 2.x.
Upgrade Node.js to version 16 or later.
Check your options string: it should represent allowed characters, e.g., '\.a-z0-9' for dots, lowercase letters, and digits.
If you need underscores, pass a custom options string like '\.a-z0-9_' or a RegExp.
Change to import: import remarkLintNoFileNameIrregularCharacters from 'remark-lint-no-file-name-irregular-characters'
Configure the plugin with an options string that includes underscore: .use(remarkLintNoFileNameIrregularCharacters, '\.a-z0-9_')