cjoudrey / graphql-schema-linter

Validate GraphQL schema definitions against a set of rules
MIT License
694 stars 62 forks source link

Support for adding format type in package.json #318

Open isha-talegaonkar opened 2 years ago

isha-talegaonkar commented 2 years ago

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.

cjoudrey commented 2 years ago

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

isha-talegaonkar commented 2 years ago

Hi @cjoudrey Thank you for the revert!