eslint-plugin-graphql
eslint-plugin-graphql copied to clipboard
Suggestion: descriptions for all types
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
}
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!