format-graphql icon indicating copy to clipboard operation
format-graphql copied to clipboard

Support for globs

Open jens1101 opened this issue 3 years ago • 1 comments

Currently we have multiple GraphQL files in our source code and I need to run this for each file individually. It would be much more convenient if globs were supported. Then I could run something like:

npx format-graphql --write=true ./src/**/*.graphql

jens1101 avatar Nov 02 '20 13:11 jens1101

If you are using lint-staged, then you can already do that:

https://github.com/okonet/lint-staged#example-wrap-filenames-in-single-quotes-and-run-once-per-file

gajus avatar Nov 02 '20 14:11 gajus