-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Optional chaining syntax is still not supported #1144
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
Comments
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
We have full support for new 3.7 syntax within the parser. Do you have some config? Help me to help you. |
@bradzacher, thank you for the quick answer! I hope, it should help. .eslintrc
package.json
|
As mentioned, prettier does not yet support 3.7, which is what is causing the errors. |
@bradzacher thank you! |
Prettier > 1.19 - already supports TypeScript 3.7 |
Hi, guys! Maybe I'm doing something wrong, but it seems like typescript-eslint/parcer can't still parce optional chaining syntax (although as I saw in other issues it should do).
tsc
command on this syntax is working great and other packages (like jest, docz etc) support it, but not eslint.What code were you trying to parse?
What did you expect to happen?
Supporting optional chaining as part of 3.7 typescript.
What actually happened?
Versions
@typescript-eslint/parser
^2.5.1-alpha.5
TypeScript
^3.7.1-rc
ESLint
5.7.0
npm
6.9.0
The text was updated successfully, but these errors were encountered: