remark-lint-alphabetize-lists

3.0.0 • Public • Published

remark-lint-alphabetize-lists Build Status

This remark-lint rule was created for free-programming-books-lint to enforce free-programming-books formatting guidelines.

This rule ensures that all list items are in alphabetical order

<!-- Invalid -->
 
# Section
- B
- [A](#C)
 
<!-- Valid -->
 
# Section
- [A](#C)
- B

Using the rule

Via .remarkrc

npm install -g remark-cli
npm install remark-lint remark-lint-alphabetize-lists

Then, set up your .remarkrc:

{
  "plugins": [
    "lint",
    "lint-alphabetize-lists"
  ]
}

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

remark xxx.md

Via CLI

npm install -g remark-cli
npm install remark-lint remark-lint-alphabetize-lists
remark -u lint -u lint-alphabetize-lists xxx.md

Readme

Keywords

none

Package Sidebar

Install

npm i remark-lint-alphabetize-lists

Weekly Downloads

145

Version

3.0.0

License

MIT

Unpacked Size

6.14 kB

Total Files

11

Last publish

Collaborators

  • vhf