-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
[1.0] Add eslint-loader including eslint-plugin-graphql #1287
Comments
graphql-cli was announced today and it would be awesome if GatsbyJS worked with it out of the box |
Is there an example on how to configure eslint-plugin-graphql to make it work with Gatsby GraphQL queries? |
I considered creating |
I added
It all seems to work fine, but when an eslint error pops up, it kills HMR, so I wanted to add in
Unfortunately, it fails:
|
@jarodtaylor check https://www.npmjs.com/package/webpack-configurator#configloaderkey-config-resolver - specifically "Config as an object with a resolver function.". |
Thanks, @pieh. Yeah, I keep getting caught up in the Webpack 1/2/3 incompatibilities. For anyone that stumbles across this and wants to find the solution. I was able to get it to work using
|
I'll be taking this on and rolling up all eslint work! |
Debugging GraphQL is a barrier to many people as most people aren't yet familiar with GraphQL. This would help a lot.
https://github.com/apollographql/eslint-plugin-graphql
For the rest of the eslint config, we should just copy CRA.
The text was updated successfully, but these errors were encountered: