cjoudrey/graphql-schema-linter

Add --fix option

Open

#23 ouverte le 9 août 2017

Voir sur GitHub
 (24 commentaires) (2 réactions) (0 assignés)JavaScript (62 forks)batch import
enhancementhelp wanted

Métriques du dépôt

Stars
 (669 stars)
Métriques de merge PR
 (Aucune PR mergée en 30 j)

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

Guide contributeur