-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
Parsing error #1696
Comments
What’s your eslint config? Class properties aren’t part of JavaScript yet. |
I found the problem, thx |
What was the fix? I'm having the exact same issue. |
It’s a bug with npm and eslint. You have to pin espree at v6, i think. |
Could you give more details? There's no v6 in espree? https://www.npmjs.com/package/espree |
The specific solution is eslint/js#393 (comment) |
I don’t believe the airbnb eslint config is compatible with CRA without ejecting - the dependency warnings you’re seeing mean that nothing can be expected to work until they’re fixed. |
I would say that's a possibility, but it's been working without issues for 6 months. |
Okay, I was able to fix it without ejecting. I'm pretty sure the warnings don't actually prevent this from working, in my case. I added the following to my .eslintrc:
|
The airbnb config already sets those parserOptions - only the parser change is likely needed. |
Hi,
I have a method in class and an error on the sign = at goToStore line definition
the message is
Parsing error: Unexpected token =
I have no warning or error in React, where did I wrong?
I lint the code in Vim 8 with Ale
The text was updated successfully, but these errors were encountered: