graphql-schema-linter
graphql-schema-linter copied to clipboard
Support for adding format type in package.json
Hi,
I wanted to know how we can specify the format of the output as json inside the package.json file. So far, everything I tried has not worked.
Hi @isha-talegaonkar,
I think that feature might be missing. Good catch!
I don't have time at the moment to address this issue, but I think the fix should be relatively straight forward.
I believe adding format
to this hash and writing a few tests would solve the problem:
https://github.com/cjoudrey/graphql-schema-linter/blob/fb0dd421138a5385de9be783393fd5f684219400/src/options.js#L30-L36
Hi @cjoudrey Thank you for the revert!