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 couldn't find the plugin" notice loses a last character #13255
Comments
Hi @JoshuaKGoldberg :) Thanks for the reporting. 😀 It seems a bug to me; I agree that the error message should be improved
Maybe not, 🤔 because the actual reason is incorrect configuration.
The "plugin:xxx" means the use of exported configuration from other plugins.
eslint/lib/cli-engine/config-array-factory.js Line 804 in 015edf6
the problem is here. there is no '/' character in |
Hi, everyone! Stumbled upon this issue in other person's code yesterday. As a solution I might propose adding the next code:
This way it is possible to also give an understandable error in some cases when the user mistakenly prints instead of: |
Thank you for your report. But it's not a bug. The A PR is welcome in order to print understandable error message in that case. |
I faced same kind of issue but for
I installed eslint version 7 but the error message was showing up as 4.19.1 which the Please check your eslint.cmd file's content. Here is the stackoverflow post. |
this is working as intende? That seems like a bad desig. Tell people they used invalid syntax, don't just chop off the last characte. |
Unfortunately, it looks like there wasn't enough interest from the team Thanks for contributing to ESLint and we appreciate your understanding. |
PR to print an appropriate error message in this case: #13473 |
Fixed by #13473. |
Tell us about your environment
What parser (default, Babel-ESLint, etc.) are you using?
Not relevant, but
"@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.
What did you expect to happen?
The module name being reported as not existing should be ...
eslint-config-prettier
, I'm guessing?What actually happened? Please include the actual, raw output from ESLint.
This issue split from: typescript-eslint/tslint-to-eslint-config#439.
Are you willing to submit a pull request to fix this bug?
I'd love to! 🤗
The text was updated successfully, but these errors were encountered: