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

The cli-plugin-eslint need upgrade babel-eslint to ^10 and eslint to ^5 #2704

Closed
luxueyan opened this issue Oct 10, 2018 · 4 comments
Closed
Labels
needs team repro We acknowledged your report and will soon try to reproduce it scope: eslint

Comments

@luxueyan
Copy link

Version

3.0.5

Node and OS info

node v8.10.0 / yarn 1.9.4 / macos 10.12.6

Steps to reproduce

when using nullish-coalescing-operator in code, vue-cli-service lint throw error because of eslint

this.empty2 ?? 'empty2'

What is expected?

Expected eslint run ok

What is actually happening?

Error: unreachable
at CodePathState.popChoiceContext (/Users/luxueyan/bitmain/data-tag-frontend/node_modules/@vue/cli-plugin-eslint/node_modules/eslint/lib/code-path-analysis/code-path-state.js:444:23)
at processCodePathToExit (/Users/luxueyan/bitmain/data-tag-frontend/node_modules/@vue/cli-plugin-eslint/node_modules/eslint/lib/code-path-analysis/code-path-analyzer.js:434:19)


Upgrade eslint (babel-eslint) version is ok

@LinusBorg
Copy link
Member

I'm not aware of this operator, can you link to some info? google didn't help.

@LinusBorg LinusBorg added scope: eslint needs team repro We acknowledged your report and will soon try to reproduce it labels Oct 11, 2018
@luxueyan
Copy link
Author

@LinusBorg
Copy link
Member

...and you have added that proposal to your babel config?

@luxueyan
Copy link
Author

Yes! But it throws error yet. When I update the eslint and babel-elint to latest in the cli-plugin-eslint package, it works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs team repro We acknowledged your report and will soon try to reproduce it scope: eslint
Projects
None yet
Development

No branches or pull requests

2 participants