-
-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add markdownlint
#1597
Add markdownlint
#1597
Conversation
readme.md
Outdated
- [Adam Babcock](https://github.com/MrHen) | ||
- [futpib](https://github.com/futpib) | ||
- [Fisker Cheung](https://github.com/fisker) | ||
* [Sindre Sorhus](https://github.com/sindresorhus) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer -
for lists.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Updated this file to use dash -
lists.
Does the linter not enforce which symbol to use for list items? |
Updated to require dash lists instead of just consistent which is the default. https://github.com/DavidAnson/markdownlint/blob/main/doc/Rules.md#md004---unordered-list-style |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I use markdownlint
in all my projects. Thanks!
@@ -14,7 +14,7 @@ | |||
"node": ">=12" | |||
}, | |||
"scripts": { | |||
"test": "xo && nyc ava", | |||
"test": "xo && nyc ava && markdownlint '**/*.md'", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FYI this doesn't work with Windows native CMD; double quotes work.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few examples of what was fixed (most autofixed):
https://github.com/igorshubovych/markdownlint-cli
There's a good markdownlint VSCode extension which highlights and autofixes these issues as well: https://marketplace.visualstudio.com/items?itemName=DavidAnson.vscode-markdownlint