cjoudrey/graphql-schema-linter

Add --fix option

Open

#23 aberto em 9 de ago. de 2017

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

Métricas do repositório

Stars
 (669 stars)
Métricas de merge de PR
 (Nenhuma PRs mesclada em 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

Guia do colaborador