This package has been deprecated

Author message:

This package was renamed to 'remark-lint-list-item-punctuation'

remark-lint-ending-period

1.0.3 • Public • Published

remark-lint-ending-period

Build Status Coverage Status

This rule ensures that all list items are ended with certain symbol. The default symbol is ..

<!-- Invalid -->
 
# Section
- A
- B
 
<!-- Valid -->
 
# Section
- A.
- B.

Using the rule

Via .remarkrc

npm install -g remark
npm install -g remark-lint
npm install remark-lint-ending-period # local install! 

Then, set up your .remarkrc:

{
  "plugins": {
    "remark-lint": {
      "external": ["remark-lint-ending-period"]
    }
  }
}

Now you can use the following command to run the lint:

remark --no-stdout xxx.md

Using another ending symbol

Set up your .remarkrc:

{
  "plugins": {
    "remark-lint": {
      "external": ["remark-lint-ending-period"],
      "ending-period": {
        "endings": ["...", ";", "."]
        }
    }
  }
}

Via CLI

npm install -g remark
npm install -g remark-lint
npm install -g remark-lint-ending-period # global install! 
remark --no-stdout -u remark-lint="external:[\"remark-lint-ending-period\"]" xxx.md

Note that the lint=<lint_options> option only works with remark >= 1.1.1.

License

MIT, see LICENSE.md for details.

This README.md is based on this one by @chcokr (MIT).

Readme

Keywords

none

Package Sidebar

Install

npm i remark-lint-ending-period

Weekly Downloads

0

Version

1.0.3

License

MIT

Last publish

Collaborators

  • sobolevn