Contributing
This repository uses npm workspaces to maintain a monorepo.
Directory Structure
All packages are located in the packages directory, and the documentation can be found in the website directory.
Installation
Fork it.
Clone it to your local directory. (Git is required.)
shgit clone https://github.com/eslint-markdown/eslint-markdown.gitMove to the
eslint-markdowndirectory.shcd eslint-markdownInstall npm packages. (Node.js is required.)
shnpm installEdit codes.
Create
my-branchbranch.shgit switch -c my-branchCommit your changes. (
huskyandlint-stagedwill lint your changed files!)shgit commit -am "<type>[scope]: <description>"Push them to your remote branch.
Submit a pull request.🙇♂️
Helpful Websites
- ESLint Code Explorer
parse5AST Explorer- CommonMark Spec
- GitHub Flavored Markdown Spec
markdownlintRulesremark-lintRulestextlintRules
Comparing Rules with markdownlint
If you use Visual Studio Code, install the markdownlint extension to see how its rules behave as you edit your Markdown files.
For example, the following snippet enables only MD029 with the one style and disables ESLint:
md
<!-- markdownlint-configure-file { "MD029": { "style": "one" } } -->
<!-- markdownlint-disable -->
<!-- markdownlint-enable MD029 -->
<!-- eslint-disable -->
1. hi
2. hi