JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 144276
  • Score
    100M100P100Q172477F
  • License MIT

remark-lint rule to warn when the file’s extension violates the given style

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-extension

Example

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:

License

MIT © Titus Wormer