-
-
Notifications
You must be signed in to change notification settings - Fork 6.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
Error when using ESLint Airbnb config #3799
Comments
Same on version 3.4.1 |
same with macos, setup eslint for the react-project with |
Seems to be an upstream issue in I assume a viable workaround would be to disable this plugin's rule that throws this error for the time being, until the bug has been fixed upstream: // .eslintrc.js
module.exports = {
// ...stuff...
rules: {
+ "import/no-useless-path-segments": "off",
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off"
},
// ..stuff....
}; Maybe the bug affects other rules as well - disable them accordingly. |
I have the same bug, but I'm using React rather than Vue. I'm going to assume you're using eslint-plugin-import@2.17.0? This appears to be solely related to eslint-plugin-import rather than the Airbnb config, which is what I'm using. I did the following to fix the issue;
EDIT1: I use the Airbnb config too, and downgrading fixed the problem for me. |
if anyone still curios, this helps me to get rid of this error, thanks @LinusBorg
|
This should be fixed in v2.17.1 according to |
If someone affected can confirm that reinstalling dependencies (remove lock file!) solves the issue I can close this. |
Updated to vue-cli 3.6.0 . Creating new project with ESLint Airbnb config completes without errors. |
This solution worked for me! Thanks! :) |
Version
3.5.5
Environment info
Steps to reproduce
vue create vue-test
What is expected?
Project will be created without errors.
What is actually happening?
Using "ESLint with error prevention only" or "ESLint Standard config" works correctly without errors. Earlier vue-cli versions did not have this problem, but I didn't have time to find exact version where this issue started.
The text was updated successfully, but these errors were encountered: