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
ESLint 6.6.0 does not account for module-hoisting via yarn workspaces when determining path for plugins #12508
Comments
This looks like it's being caused by the changes to how ESLint loads shareable configs and plugins, however, that was released in v6.0.0. Can you share the config file you're using? I don't have a lot of experience with |
Hey @kaicataldo thanks for your response. That sounds like exactly what I'm seeing, only as you mentioned it was implemented in Here's a gist with my Just to re-confirm, |
Thanks for the info. I'm not seeing anything that stands out to me, and that's really odd that you're noticing this behavior only in |
@kaicataldo experiencing the same issue with similar setup: Issue is reproduced only with |
Is there any chance either of you could make a minimal reproduction GitHub repository? |
Unfortunately I'll never find the time to make a repro. I can describe the issue to help resolve, but until it's resolved I'll just have to stay on Upgrading |
With all the moving parts here, it's a bit of a wild goose chase at the moment. Sounds like it might be beneficial to file an issue with the Sublime plugin you're using - they might be able to chase this down! |
I have this same issue after upgrading, but I'm not using Sublime. I don't think this is an issue with an external plugin. I'm having it while using yarn workspaces and Atom. |
Downgrading stopped the issue, but broke a nested Gatsby app that is in a workspace. |
@kaicataldo I understand this might not be resolvable with the currently known information. That said, I feel reasonably, but not entirely, confident that the issue is in ESLint itself. |
Does the most recent patch release fix the issue for folks who are encountering it? It includes the fix for this issue. |
Unfortunately, it looks like there wasn't enough interest from the team Thanks for contributing to ESLint and we appreciate your understanding. |
@kaicataldo, the issue persists with |
If I copy the
According to SublimeLinter, this failure originates with ESLint. It looks for If I was running via CLI, I suspect this comment about prefixing with Any thoughts? I feel like I'm trapped in the past. |
Tell us about your environment
Node version: v12.10.0
npm version: v6.2.0
Local ESLint version: Not found -- But it is installed (rolled back to 6.5.1 and it's working fine)
Global ESLint version: v6.5.1 (Currently used)
What did you expect to happen?
Upgrading from 6.5.1 to should not break linting (specifically seeing this in Sublime Text)
I get an error for the first plugin, no matter what plugin that is. The message I get is like this:
But we're using
yarn workspaces
andlerna
and the proper location of that file in our environment after upgrading to6.6.0
is:C:\projects\myProject\node_modules\doctrine\lib\doctrine.js
What actually happened? Please include the actual, raw output from ESLint.
See error text above.
Are you willing to submit a pull request to fix this bug?
Can't help with resolution.
The text was updated successfully, but these errors were encountered: