-
Notifications
You must be signed in to change notification settings - Fork 49
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
Add eslint disable support #112
Conversation
README.md
Outdated
}` | ||
``` | ||
|
||
Note that only this form of suppression works. Inline disables don't currently work until graphql-js provides support for parsing Comment nodes in their AST. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not sure I understand what you mean by "inline disables". To me eslint-disable-next-line
is a type of inline disable.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm, I was referring to the eslint suppression where the comment is on the same line as the offending ast node to be "inline". I guess I could make the readme more specific
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I get it now. Thanks for the update!
7ec2649
to
d26e588
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me!
This PR adds the ability to suppress eslint reporting within graphql tags:
Note that only the
eslint-disable-next-line
form of suppression works.eslint-disable-line
doesn't currently work until graphql-js provides support for parsing Comment nodes in their AST.