Skip to content
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

Add support for optional chaining #3514

Closed
ghost opened this issue Oct 31, 2020 · 2 comments
Closed

Add support for optional chaining #3514

ghost opened this issue Oct 31, 2020 · 2 comments
Labels

Comments

@ghost
Copy link

ghost commented Oct 31, 2020

Hello. With Node 14, ?. added to use but JSHint shows as error. I can avoid it by manually doing // jshint ignore:line, but I think it might be more appropriate if support comes in. Thank you

@jugglinmike
Copy link
Member

The feature you're looking for is called "optional chaining," and we have it on the roadmap for the next major release:

#3486

I'll rename this issue to help others find it.

@jugglinmike jugglinmike changed the title Node 14 update for JSHint Add support for optional chaining Nov 2, 2020
@jugglinmike jugglinmike added the P2 label Nov 2, 2020
@jugglinmike
Copy link
Member

JSHint version 2.13.0, released today, includes support for optional chaining. Be sure to update your configuration to opt in to the new language feature via esversion: 11 or later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant