-
Notifications
You must be signed in to change notification settings - Fork 636
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
Consider using a linter for markdown files #3543
Comments
We do already have a |
Should we add this to our ci checks? |
we should ask @damiannolan since we know how much love he has for linters complaining to him (but yeah, I'd say it would be a good idea). |
We have IMO adding a CI check for this might be a little overkill, especially since we're already pushing limits on GH runners. We could enforce a pre-commit hook, I think @chatton already uses one in his local setup which makes use of |
Can't we set it to only run when changes to |
Yeah true |
Most files are already linted. The real issue is that we don't have a custom ruleset for our project. Markdownlinter's default settings will result in markdown files that reflect the author's preferred markdown authoring preferences. This is what causes inconsistency in our docs. I think we can rename this issue to something like |
do we not have |
We do @DimitrisJim, however, it is not customised enough. It just tells the linter to ignore some settings. Currently the style settings are still set to default. This includes things like heading style, indentations, unordered list style and more. For example, the fix to the comment thread @colin-axner linked in this issue would be to add "MD004": {
"style": "dash"
}, This is why Colin noticed some files being changed |
I'm addressing this issue in the next docs PR |
I've factored this out of the docs PR, and instead, linter/workflow related changes will have their own PR |
Closed by #3805 |
Summary
It can be useful to lint our markdown files for consistency. Adding this tooling into our workflow would prevent reviewing unnecessary diffs when a linter is run on the markdown files.
see related comment thread
For Admin Use
The text was updated successfully, but these errors were encountered: