-
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
Correct custom eslint instructions #12980
Comments
This is the file that defines our setup https://github.com/gatsbyjs/gatsby/blob/master/packages/gatsby/src/utils/eslint-config.js |
@kkemple looked into writing out the schema so then a custom eslint config could use it. @freiksenet @stefanprobst — it'd be great to do that #6167 |
@KyleAMathews this is on the roadmap. In the meantime there is this plugin. |
Ok, no worries @stefanprobst So for now we should just recommend people use: {
globals: {
graphql: true,
__PATH_PREFIX__: true,
},
extends: `react-app`,
} |
Would love for someone to pick this up--right now we're displaying a document that is a little bit less focused than we'd like. Description
|
Hi, sorry to sound dumb, but I'd like to dive into a bit of open source, and this seems like a good place to start. Is this replacing the current |
@lukebrobbs not a dumb question, at all! Yep, exactly. You'll want to edit this file and instructions to be a little simpler, and just install the necessary dependencies, e.g. Feel free to reach out if we can help with anything else! |
Great, thanks! The npm page for
Will all of this need to be installed with Gatsby? |
If people customize their eslint setup, we should recommend they start from our default setup https://www.npmjs.com/package/eslint-config-react-app and go from there.
Our current docs recommend something entirely different:
https://www.gatsbyjs.org/docs/eslint/#configuring-eslint
The text was updated successfully, but these errors were encountered: