Skip to content
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

Merged
merged 6 commits into from Nov 11, 2021
Merged

Add markdownlint #1597

merged 6 commits into from Nov 11, 2021

Conversation

bmish
Copy link
Sponsor Collaborator

@bmish bmish commented Nov 10, 2021

A few examples of what was fixed (most autofixed):

  • Wrong header sizes
  • Codeblocks missing language
  • Inconsistent spacing / list types

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

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)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I prefer - for lists.

Copy link
Sponsor Collaborator Author

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.

@sindresorhus
Copy link
Owner

Does the linter not enforce which symbol to use for list items?

@bmish
Copy link
Sponsor Collaborator Author

bmish commented Nov 10, 2021

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

Copy link
Collaborator

@fisker fisker left a 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!

@fisker fisker merged commit f93b4be into sindresorhus:main Nov 11, 2021
@@ -14,7 +14,7 @@
"node": ">=12"
},
"scripts": {
"test": "xo && nyc ava",
"test": "xo && nyc ava && markdownlint '**/*.md'",
Copy link
Contributor

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.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants