Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enforce proper graphql query syntax #12

Open
ashfurrow opened this issue Dec 1, 2018 · 0 comments
Open

Enforce proper graphql query syntax #12

ashfurrow opened this issue Dec 1, 2018 · 0 comments
Assignees
Labels

Comments

@ashfurrow
Copy link
Member

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant