Package Exports
- remark-lint-file-extension
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (remark-lint-file-extension) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
remark-lint-file-extension
Warn when the document’s extension differs from the given preferred extension.
Does not warn when given documents have no file extensions (such as
AUTHORS or LICENSE).
Options: string, default: 'md' — Expected file extension.
Install
npm install --save remark-lint-file-extensionExample
When this rule is turned on, the following file
readme.md is ok:
When this rule is turned on, the following file
readme is ok:
When turned on is passed in, the following error is given:
1:1: Invalid extension: use `md`When this rule is 'mkd', the following file
readme.mkd is ok: