Navigation Menu

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

Add option to look only for certain file extensions #57

Closed
jantimon opened this issue Jan 15, 2019 · 3 comments
Closed

Add option to look only for certain file extensions #57

jantimon opened this issue Jan 15, 2019 · 3 comments

Comments

@jantimon
Copy link
Collaborator

jantimon commented Jan 15, 2019

We use a shared repository with our backend team and we would have to ignore backend files and assets.

Can we have something like prettier --write \"**/*.*(js|jsx|json)\" for prettier-quick?

So it would check only staged files that actually match the minimatch pattern?

@hawkrives
Copy link

Would it work if you just add the files you want to ignore to .prettierignore?

@smollweide
Copy link

Would be nice if pretty-quick and prettier are working in the same way.

`pretty-quick --staged "**/.(js|jsx|json)``

and THANK you for this project 👍

@jantimon
Copy link
Collaborator Author

I prepared #59 which adds patterns - could you please take a look if that works for your?

jantimon added a commit to jantimon/pretty-quick that referenced this issue Jan 16, 2019
jantimon added a commit to jantimon/pretty-quick that referenced this issue Jan 16, 2019
jantimon added a commit to jantimon/pretty-quick that referenced this issue Jan 17, 2019
jantimon added a commit to jantimon/pretty-quick that referenced this issue Jan 17, 2019
@azz azz closed this as completed in #59 Jan 17, 2019
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

No branches or pull requests

3 participants