cjoudrey/graphql-schema-linter

Add --fix option

Open

#23 aperta il 9 ago 2017

Vedi su GitHub
 (24 commenti) (2 reazioni) (0 assegnatari)JavaScript (62 fork)batch import
enhancementhelp wanted

Metriche repository

Star
 (669 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

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

Guida contributor