-
-
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
How to ignore node_modules from pretty-quick #50
Comments
Have you tried adding |
@hansiemithun did you ever figure out what the issue was? I'm having the same issue and I can't figure out how ignore node_modules specifically |
@aleclarson @hansiemithun did adding the directory to the .prettierignore file work? Or you can possibly try adding the flag --stage to only target staged files on commits. Those seem to work for me. |
@hansiemithun this is strange because Could you run:
and
to check if they output any |
Error doing the second step: @azz - |
Sorry I edited my post. Missing the |
@azz I have the same problem, node_modules is not print by any your commands. It is supposed to mean that my config is ok ? |
I was able to get this to work by adding
|
You probably are interested in prettiering only staged files. You can do that by passing --staged flag:
|
A minimal but runnable online reproduction is required. |
Tried creating
.prettierignore
file havingnode_modules
defined inside itHave config setup rule like this below:
`"lint": "pretty-quick & eslint "src/**/*.{js,jsx}" --quiet --fix"
Giving error as:
Also tried configuring like this:
"lint": "pretty-quick --ignore-path=.prettierignore & eslint \"src/**/*.{js,jsx}\" --quiet --fix"
But no luck :( Can anyone help?
The text was updated successfully, but these errors were encountered: