eslint-plugin-relay does this here: https://github.com/relayjs/eslint-plugin-relay/blob/master/src/rule-graphql-syntax.js
The rule appears to do the following:
- prohibit
${...} substitutions in graphql-tagged strings.
- require GraphQL operations to be named.
- make sure that
graphql.parse works on the query.