cjoudrey/graphql-schema-linter

Add --fix option

Open

#23 opened on Aug 9, 2017

View on GitHub
 (24 comments) (2 reactions) (0 assignees)JavaScript (62 forks)batch import
enhancementhelp wanted

Repository metrics

Stars
 (669 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

In some error cases, the linter can programmatically know what the schema should have been.

It would be awesome to provide a --fix option that would automatically resolve these errors.

Some example rules that could be fixed by the linter this way:

  • EnumValuesAllCaps
  • EnumValuesSortedAlphabetically
  • FieldsAreCamelCased
  • InputObjectValuesAreCamelCased
  • TypesAreCapitalized

Contributor guide