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 broke plugin resolution from 5 version #11889
Comments
Hi. How do you run As the migration guide says, we have changed plugin resolution intentionally. Is this not related to your case? |
I resolved this via I called it from my shared package via Node.JS api.
|
If it's an absolute path and the file existed, it should load successfully. Would you confirm the path is valid and exists? |
Yes, path is valid and file exists. Tried to update parser to canary version, but no success |
Would you check the version of your |
Ah, sorry. You said canary. Hmm. I'm not sure what it happened. If you provided a repro case, it will be helpful. |
https://github.com/Delagen/eslint-resolution-issue npm run test |
Ah, I see. Thank you for the repro repo! This is related to Linter no longer tries to load missing parsers from the filesystem section. |
Thanks. Rewrote code to executeOnText of CLIEngine. |
Unfortunately, there are no ways. Since #11742, ESLint validates directive comments stricter. |
I use multi pass eslint with different configs and plugins. One for all js, second for client code with angular plugin, and etc. So common pass fail when found directive from specific plugin. Temporary silenced this error with filter by message text. |
Closing as answered. Thank you. |
Tell us about your environment
What parser (default, Babel-ESLint, etc.) are you using? @typescript-eslint/parser
Please show your full configuration:
Configuration
What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.
I have shared package which contains all the dependencies (plugins) and call eslint parser via CLIEngine
What did you expect to happen?
All works as expected
What actually happened? Please include the actual, raw output from ESLint.
Failed to load eslint-plugin-node
https://github.com/eslint/eslint/blob/master/lib/cli-engine/config-array-factory.js#L870
Cause it contained in subpackage that calling this code? I think in broke many shared runners.
The text was updated successfully, but these errors were encountered: