-
Notifications
You must be signed in to change notification settings - Fork 22.5k
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
fix(lint-staged): markdownlint and prettier can race on md files #28306
Conversation
followed the markdownlint/prettier ordering defined in the package.json fix:md and lint:md commands see: https://github.com/okonet/lint-staged#task-concurrency follow-up to: mdn#27936
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 seems like a good solution to me, LGTM!
Argh, but I can't merge this because the two required tests aren't running, since modified files don't match their scope. |
Anyone, please review and merge this solution fast.
|
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.
There's some changes outstanding requested by @OnkarRuikar in https://github.com/mdn/content/pull/28306/files#r1280214197
Co-authored-by: Onkar Ruikar <[email protected]>
Description
Prevent possible race condition between prettier and markdownlint in lint-staged, changed to use the order defined already in the package.json fix:md and lint:md commands.
I don't believe the other rules will race, since:
yarn test:front-matter-linter
doesn't appear to change the files, just runs jest on them*.{svg,png,jpeg,jpg,gif}
@OnkarRuikar I don't seem to be able to assign you as a reviewer, but it would be great if you can take a look :)
Additional details
https://github.com/okonet/lint-staged#task-concurrency
Related issues and pull requests
Relates to #27936