cjoudrey/graphql-schema-linter

Add --fix option

開放

#23 建立於 2017年8月9日

 (24 則留言) (2 個反應) (0 位負責人)JavaScript (61 個分叉)batch import
enhancementhelp wanted

倉庫指標

星標
 (704 顆星)
PR 合併指標
 (30 天內沒有已合併 PR)

描述

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

貢獻者指南