chore: respect .prettierignore in auto-format workflow#31344
Conversation
|
This pull request requires reviews from CODEOWNERS as it changes files that match the following patterns:
|
Review✅ No style-guide issues found in commit CommandsOnly codeowners can run commands. Post a comment with the command to trigger it.
|
There was a problem hiding this comment.
Correct and safe change. Explicitly passing ensures the auto-format workflow respects the ignore file even when files are listed explicitly from .
Posted a minor note on the description — in local testing with prettier 3.8.3 the default ignore resolution does work with explicit paths, but making it explicit is harmless and more robust.
|
Review summary
|
|
I have reviewed PR #31344. What I did:
Issues flagged: None. The PR is a clean 1-line infrastructure fix, already approved by a CODEOWNER (MohamedH1998), and all status checks are passing. |
f13e832 to
947c8b8
Compare
Summary
The auto-format workflow builds an explicit file list from
git diffand passes it directly toprettier --write, which bypasses.prettierignore.Adding
--ignore-path .prettierignoremakes prettier respect the ignore file even when files are passed explicitly.