cjoudrey/graphql-schema-linter

Add --fix option

Open

#23 geöffnet am 9. Aug. 2017

Auf GitHub ansehen
 (24 Kommentare) (2 Reaktionen) (0 zugewiesene Personen)JavaScript (62 Forks)batch import
enhancementhelp wanted

Repository-Metriken

Stars
 (669 Stars)
PR-Merge-Metriken
 (Keine gemergten PRs in 30 T)

Beschreibung

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