Skip to content
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 issue that .prettierignore in monorepo sub folders is not read. (#3003, #3424) #3622

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

AdoKevin
Copy link

  • Run tests
  • Update the CHANGELOG.md with a summary of your changes

This issue has been metion in thread #3003 and #3424. Currently, Prettier only reads .pretterignore file from directories included by .code-workspace or root project directory. However, in monorepo cases, we prefer no .code-workspace is created, and packages are organized by subdictories.

My main change is to prioritize reading the .prettierignore file alongside the .prettierrc file (I believe is the most common usage). If it does not exist, the current logic will still be attempted.

@auto-assign auto-assign bot requested a review from ntotten February 10, 2025 09:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants