eslint-plugin-graphql icon indicating copy to clipboard operation
eslint-plugin-graphql copied to clipboard

Suggestion: descriptions for all types

Open dylang opened this issue 8 years ago • 1 comments
trafficstars

Suggestion:

TypeDescriptions: Always

Checks that types always have descriptions.

bad

type Widget {
  id: ID
  name: String
}

good

# Blocks of content shown on the home page
type Widget {
  id: ID
  name: String
}

dylang avatar May 19 '17 18:05 dylang

Right now this tool doesn't really lint the schema files, only queries. I think a tool to lint the schema would be very welcome but would probably live in a separate repository?

If you're interested in working on that, let's get it going!

stubailo avatar May 29 '17 03:05 stubailo