graphql-schema-linter icon indicating copy to clipboard operation
graphql-schema-linter copied to clipboard

Support for adding format type in package.json

Open isha-talegaonkar opened this issue 2 years ago • 2 comments

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.

isha-talegaonkar avatar Jun 22 '22 20:06 isha-talegaonkar

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

cjoudrey avatar Jun 23 '22 13:06 cjoudrey

Hi @cjoudrey Thank you for the revert!

isha-talegaonkar avatar Jun 27 '22 16:06 isha-talegaonkar