-
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
Yarn workspace root eslint? #6080
Comments
/cc @kkemple |
Gatsby currently looks in the working directory for eslint config and disables the gatsby linting if found. Since you're in a monorepo right now you would need to copy your eslint config over to the gatsby site folder. We could look at options for disabling in another fashion (environment variable or something) but without really good documentation that may be equally as troublesome. We will be making the integration of tooling (jest/eslint) much easier in the near future but that is still be worked out! |
We could recursively look up for an eslint config too? Is there a eslint config loader helper that does this? |
I recently got around this by sticking an eslintrc in the Gatsby root and have it extend then higher up one. Nicer and simple workaround! |
@KyleAMathews I'll look into it today |
Until we can get better recursive checking (which brings about a new set of issues) you can use the method mentioned by @jquense above
|
thanks @kkemple, maybe I'm missing something... but seems like having a |
Due to the high volume of issues, we're closing out older ones without recent activity. Please open a new issue if you need help! |
Hi, I've looked everywhere but couldn't find a solution to this... I have a monorepo with yarn workspace, eg:
Is there a way I can tell gatsby to use the
.eslintrc
file in the root of the repo? I currently haveB
andC
set up to use my.eslintrc
file, but not forA (gatsby site)
I'm on the latest version of gatsby (
2.0.0-beta.9
). Thanks!The text was updated successfully, but these errors were encountered: