cjoudrey/graphql-schema-linter

Add --fix option

Aberta

#23 aberto em 9 de ago. de 2017

 (24 comentários) (2 reações) (0 responsável)JavaScript (61 forks)batch import
enhancementhelp wanted

Métricas do repositório

Stars
 (704 estrelas)
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