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 location #14
Comments
Hi, not currently, we'll have to either:
|
@azz when .prettierignore and --ignore-path can use in project ? |
I have an issue I'm unsure is the same: I can't get my .prettierignore.js file to function anywhere. webpack is running in the same directory as the .prettierignore.js file, both which are two directories into my root git directory. EDIT: nevermind, confirmed I have the same issue, even when my command is running from However I can only get it to work with this:
Either line on its own doesn't work. |
@azz what about adding a I have the same issue here, and the working dir workaround does not work with commits from IDE, so I think the best way would be an option to manually set the path for pretty-quick, or to go up folders from the pretty-quick folder itself, since most likely the |
I have the same issue as osnoser1, for now I will place in root directory, but it would be ideal to be able to set the ignore-path just as prettier allows |
How does your editor pickup your config files if pretty-quick cannot find them? Are you using WebStorm? |
@azz Yes, I'm using WebStorm and it picks up the files correctly. Just in case, the folder structure looks like this, nothing too weird I think:
|
Just checked the code, we only need So An issue with this is WebStorm might not know how to find your |
@IronSean I don't think a file named |
I created #58 in order to pickup the .prettierignore file from the current working directory too. |
Hi, i have this problem:
My directory structure is:
In that
package.json
i have the script"format:fix": "pretty-quick --staged"
, however it is not taking the.prettierignore
file. I have to place the file in the root folder of the repo so that it works.Is there a way to avoid copying that file to the root of the repo and take the one inside the
web-app
folder?The text was updated successfully, but these errors were encountered: