cjoudrey / graphql-schema-linter

Validate GraphQL schema definitions against a set of rules

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

New rule: spacing

cyberhck opened this issue · comments

Hello there,
Thanks for this tool, it works great.

I was wondering if you have any plans on adding spacing rules like new lines before each type, new line before a description of a field, space between type name and a curly etc.

Hi @cyberhck. Thanks for the feedback. Glad you like the tool. ❤️

graphql-schema-linter doesn't really validate these kind of things because I felt like a tool like prettier was better suited for this task. graphql-schema-linter is more interested by the parsed schema itself and not necessarily the details of how it was written in a file.

Hope that answers your question.

Thanks for the info :)