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

Fails on nullish coalescing operator #3154

Closed
TheUnlocked opened this issue May 4, 2020 · 3 comments
Closed

Fails on nullish coalescing operator #3154

TheUnlocked opened this issue May 4, 2020 · 3 comments

Comments

@TheUnlocked
Copy link

Describe the problem and steps to reproduce it:

Use the nullish coalescing operator ?? in a file and try to lint it.

Minimal repro:

let x = undefined ?? "";

What happened?

The linter reported a generic syntax error.

What did you expect to happen?

No error.

Anything else we should know?

The linter reports the error as occurring at line 1, col 1 despite the error being caused by the operator.

@Rob--W
Copy link
Member

Rob--W commented May 5, 2020

Duplicate of #2978

@Rob--W Rob--W marked this as a duplicate of #2978 May 5, 2020
@Rob--W Rob--W closed this as completed May 5, 2020
@Rob--W
Copy link
Member

Rob--W commented May 5, 2020

Sorry, edited the wrong issue. Still related though: this error is because the new syntax is not yet supported by eslint.

@Rob--W Rob--W reopened this May 5, 2020
@willdurand
Copy link
Member

This is probably fixed by #3161

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

No branches or pull requests

3 participants