-
Notifications
You must be signed in to change notification settings - Fork 26.6k
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-config-airbnb] Unexpected top-level property "ecmaFeatures". #1454
Comments
We are not yet compatible with eslint v4; please use the install command in the package readme to ensure you have the proper peer deps. Also, See also, #1447. |
Hi @ljharb thanks for the reply. I've manually run the info command and installed the correct eslint version, suggested by the deps (3.19.0). I'm using Atom with the eslint plugin, and I'm pretty sure it's using the local eslint, as I've not installed it gloablly (for double check, I've completely removed eslint and installed it again). This is my package.json:
P.S.
(and including that change, it works) |
I'm confused because eslint 3 doesn't validate configs; only eslint 4 does. So it shouldn't be possible to get that error unless you're on v4. |
Are you sure react-scripts isn't bringing in eslint 4? What does |
Hi @ljharb, I'm confused, too. Here is the
yarn.lock:
And the eslint's node_modules package.json shows |
+1 with this problem. Hope eslint-config-airbnb will upgrade to compatible with eslint v4 soon 😄 |
@paranoidjk see #1447. There's nothing wrong with sticking with v3 in the meantime. |
@ljharb it seems that the Atom's Thanks for the support 👍 |
I have same issue with such config: "babel-eslint": "^7.2.3",
"eslint": "^4.0.0",
"eslint-config-airbnb": "^15.0.1",
"eslint-plugin-import": "^2.3.0",
"eslint-plugin-jsx-a11y": "^5.0.3",
"eslint-plugin-react": "^7.1.0"
It works fine with eslint v3 so i assume i should wait till config will be available for v4? Any help needed? |
@artyomtrityak yes, |
I could get rid of the errors by editing two files:
Be sure to not use
Instead, nest it into
No idea, if that's the correct fix though, i just does not throw any errors anymore. |
@alp82 yes, that's invalid in eslint 4 but is ignored in eslint 3. It's already removed in master; we just haven't released a version compatible with eslint 4 - which is why anybody running into this is using invalid dependencies. |
Thanks for the response. Any ETA on when you plan to release the eslint 4 compatible version? |
I am having the same problem even after downgrading to [email protected] with Visual Studio Code (and the eslint plugin) and after wasting half a day trying to fix this without success I think I might just need to wait for v4 update before using airbnb. |
@MFry are you sure VSC isn't using a global eslint v4? if so, you can surely configure it to use a locally installed eslint. |
@ljharb I uninstalled every global except create-react-app. |
Presumably you've also restarted VSC after uninstalling those things… I'm not really sure :-/ It seems apparent that you have a copy of v4 somewhere and that's what VSC is running - you can certainly wait until #1447 is resolved, but then it'll just pop up again when v5, v6, etc comes out - so you may want to spend the time finding a proper fix now :-/ |
I was able to resolve this issue on my end by making a local .eslintrc.json file. I used the command in VS Code once provided by the ESLint extension, but here's the text of the file if anyone needs it:
|
@ScottRFrost you always need to have a local eslintrc file. in this case you're not extending the airbnb config tho? |
Just mentioning that I had the same error and what I did to fix it in case others encountered the same. Nothing about the error would lead you to believe it's related to a missing config file. I'm not extending. |
@ScottRFrost right, what i'm saying is that if you're not extending airbnb or airbnb-base, then this repo is irrelevant to your issue. |
v16 is now released. |
Hi,
I've been trying to install version 15.0.1, but I'm encountering the following error:
I saw that arount one month ago a fix was released in the master channel, but no new version has been made available on npm/yarn.
Is there a way to pull the git repo directly? I don't know how to specify the subdirectory of the javascript project.
Thanks
The text was updated successfully, but these errors were encountered: