-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Update markdown lint #1006
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
Update markdown lint #1006
Conversation
✅ Deploy Preview for all-contributors ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
JoshuaKGoldberg
left a comment
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.
✨ LGTM other than the one note on README.md linting.
package.json
Outdated
| "lint": "markdownlint **/*.{md,mdx} --ignore node_modules", | ||
| "lint-fix": "markdownlint **/*.{md,mdx} --ignore node_modules --fix" | ||
| "lint": "markdownlint src/**/*.{md,mdx} --ignore node_modules", | ||
| "lint-fix": "markdownlint src/**/*.{md,mdx} --ignore node_modules --fix" |
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.
This now excludes the root README.md. Is that intentional?
If this was to avoid formatting MAINTAINERS.md, I'd suggest moving the --ignore to a .markdownlintignore.
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.
Good idea, that way we keep the ignores together and explicit.
I was thinking about excluding anything not in the docs from linting. But there isn't any harm in including other files in the repo that pass.
I've kept MAINTAINERS.md excluded. But we could take time to fix that too.
JoshuaKGoldberg
left a comment
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.
🙌
| "lint": "markdownlint **/*.{md,mdx} --ignore node_modules", | ||
| "lint-fix": "markdownlint **/*.{md,mdx} --ignore node_modules --fix" | ||
| "lint": "markdownlint **/*.{md,mdx}", | ||
| "lint-fix": "markdownlint **/*.{md,mdx}" |
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.
ooh I know this was merge but @JimMadge does this need to have --fix to be different from the lint step and to actually apply the fixes? lint and lint-fix look the same .
supersedes #972 and #984
Updates packages and fixes errors that came with a newer version of Markdown Lint CLI.