-
-
Notifications
You must be signed in to change notification settings - Fork 83
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
prettierignore not working correctly in mono repo project #95
Comments
@michael13491 I faced the same issue. It looks like prettier and pretty-quick treats
Another option is to move
|
@andrei-ilyukovich you helped me resolve my problem, thank you! I was struggling to figure this out. |
Facing the same issue. Wouldn't the straight-forward solution be that pretty-quick should only consider files inside the folder from which it's being called? (instead of the whole surrounding git repository) |
This is also a significant problem for me, so switching to running prettier inside lint-staged for now |
Same here |
1 similar comment
Same here |
Yeah cant use this with monorepo in this state |
A minimal but runnable online reproduction is required. |
I've observed something that could potentially be triggering the issue.
|
@SukkaW Thanks for your efforts here! I think we should align with prettier. |
Hi,
I have an issue that is similar to #14
My project folder structure is:
.prettierignore contains:
My problem is that pretty-quick does not seem to read .prettierignore rule correctly.
When I run
npx pretty-quick --check
, it fails to find foo/test.js as changed file. However, when i runnpx prettier --check "**/*.js"
, it will pick up foo/test.jsIf I remove the rules in .prettierignore, pretty-quick is able to pick up the changed files:
So it seems to me that pretty-quick is not reading the ignore rules correctly or am I missing something?
The text was updated successfully, but these errors were encountered: