-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
Move to Eslint 5 #2322
Comments
Also @vue/cli-plugin-eslint needs eslint@^4.19.1, and @vue/eslint-config-standard needs eslint@^5.0.0-alpha.2 Which means you get a peer dependency incompatibility if you generate a project chosing standard config for eslint. |
Well, this issue is about fixing that. |
As this is related to my problem I'll append the log I get when I run This is my config I chose:
The setup works surpesses all the peer dependency warnings, but when I remove all the modules (
I can fix this by adding the missing devDeps, but that's not the proper way. A quickfix for me is to add these deps (for my config): "devDependencies": {
"@babel/core": "^7.0.0",
// ...
"babel-jest": "^23.4.2",
"babel-loader": "^8.0.2",
"eslint": "^5.5.0",
"eslint-loader": "^2.1.0",
"eslint-plugin-node": "^7.0.1",
"eslint-plugin-promise": "^4.0.0",
"eslint-plugin-standard": "^4.0.0",
"eslint-plugin-vue": "^4.7.1",
"jest": "^23.5.0",
// ...
"webpack": "^4.17.2"
} |
Is there any news on this? I'm trying to have vue-cli-service lint run as a pre-commit hook, but it's failing on the following line in my
with the following error:
It's really frustrating to have stuff that's valid according to the eslint documentation be rejected because of a hard dependency on an old version of eslint… |
@unikitty37 See #2560 |
I am missing something regarding this issue? This still causes a warning with yarn install
eslint 5 resolves that bring from upstream a flat-cache package that does not require CircularJSON and use flatted. Please advice |
@gassius In more recent scaffolded projects we've added eslint v5 to the projects' root |
Thanks @sodatea Any idea or workaround I could apply? tried with resolutions with no success |
Considering it's a warning rather than an error, I think you can safely ignore it. |
What problem does this feature solve?
We are currently using eslint 4 and lot of people have moved to eslint 5. So, we should do that too.
What does the proposed API look like?
Update the cli-plugin-eslint package
The text was updated successfully, but these errors were encountered: