Awesome
remark-lint-alphabetize-lists
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