-
-
Notifications
You must be signed in to change notification settings - Fork 6.5k
fix(lint): use --fix in .lintstagedrc
#7938
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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.
Pull Request Overview
This PR ensures that CSS files are automatically fixed by Stylelint when staged.
- Added
--fixflag to Stylelint commands in lint-staged configs. - Updated both
packages/ui-componentsandapps/siteconfigurations.
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| packages/ui-components/.lintstagedrc.json | Add --fix to Stylelint for CSS files |
| apps/site/.lintstagedrc.json | Add --fix to Stylelint for CSS files |
Comments suppressed due to low confidence (2)
packages/ui-components/.lintstagedrc.json:3
- [nitpick] The CSS lint-staged command is duplicated in multiple packages; consider centralizing this into a shared root configuration to reduce duplication and simplify future updates.
"**/*.css": ["stylelint --allow-empty-input --fix", "prettier --write"],
Codecov ReportAll modified and coverable lines are covered by tests ✅
✅ All tests successful. No failed tests found. Additional details and impacted files@@ Coverage Diff @@
## main #7938 +/- ##
==========================================
+ Coverage 75.40% 75.43% +0.03%
==========================================
Files 96 96
Lines 8354 8354
Branches 219 219
==========================================
+ Hits 6299 6302 +3
+ Misses 2053 2050 -3
Partials 2 2 ☔ View full report in Codecov by Sentry. |
|
Fast-tracking as hot-fix! cc @nodejs/nodejs-website |
|
Lighthouse Results
|
While doing #7937, I realized that our
.lintstagedrc.jsonfiles were not performing automatic stylelint fixes when possible