cjoudrey/graphql-schema-linter

Add --fix option

Open

#23 创建于 2017年8月9日

在 GitHub 查看
 (24 评论) (2 反应) (0 负责人)JavaScript (669 star) (62 fork)batch import
enhancementhelp wanted

描述

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

贡献者指南