-
-
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
pattern doesn't work as expected #73
Comments
Sorry opening and closing many times. I was trying to find a way to delete and create a new one. Just as I finish writing the ticket I've realised So I added it thinking that that was the whole problem. But now it just won't find any files anymore. The same pattern I use for prettier that works won't work for pretty-quick. |
Could this be related to #63? |
A minimal but runnable online reproduction is required. |
Hi there,
I've been trying to get pretty-quick for my project but I'm having a hard time. I did test a few scenarios to try and have as much info before opening this ticket.
First of all I run a simple
yarn prettier --check './src/v2/**/*.ts'
it brought back many files, all of them ending in.ts
as expected.Then I got one of them, added a white space and staged it. Then I run the following.
yarn pretty-quick --staged --verbose pattern './src/v2/**/*.(ts|tsx)'
Since it was my only file staged it pick it up correctly.
Then for the sake of testing all functionalities, I changed a
.js
file and staged it. And to my surprise it actually tries and fix the js file. This is the cli outputThe text was updated successfully, but these errors were encountered: