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

貢獻者指南