-
-
Notifications
You must be signed in to change notification settings - Fork 681
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
Is two versions eslint-version-vue essential? #686
Comments
Thank you for this issue. But I'm not sure how the |
In v3.1 we upgraded the default eslint version to v5 but we did not want to break projects created by @vue/cli v3.0.x, hence the co-existence of two versions. Projects created with old versions of @vue/cli would default to the internal ESLint dependency, while new ones explicit specify the required versions in package.json. Related commits: |
Maybe the issue was fixed by this: vuejs/vue-cli#2932 |
It's 4.0.1 already. I checked the latest released version is 4.0.1, am I missed anything? |
Ahhh I mean greater than or equal to… |
Is the last problem here now that ESLint formats all files @Priestch ? And the following output:
Is not what you'd expect it to be? |
Yes, I want to keep this format. <el-table-column
prop="id"
width="80"
align="center"
label="ID"
/> And I try to figure out the reason caused all project files be formatted. |
The reason is prettier @Priestch. Since not long ago Prettier supports Vue templates, and if something is able to fit within the set limit it will be in one line. I bet if you add few more attributes it'll be wrapped. |
@michalsnik It seems you got the right answer. Opinionated prettier have conflicts with eslint-plugin-vue rules. I want to keep the old |
Finally, I figure out what really happened. I found a broken yarn.lock with git conflicts and asked my teammate to fix. He resolve the conflicts, but all previous packages with locked version upgrade to latest. Thank all you guys! |
Glad you figured it out :) |
Tell us about your environment
Please show your full configuration:
What did you do?
What did you expect to happen?
yarn lint
should only fix normal format issues like before, but it changed almost all project files.I try to figure out what happended, only find a broken yarn.lock with not resolved git conflicts. So I fixed the lock file, and I also find two version
eslint-version-vue
in yarn.lock, is both versions essential? or maybe this two versions plugin cause such a mess?eslint-plugin-vue@4.7.1
may caused by dependencies of cli-plugin-eslint in package.json.Two version
eslint-plugin-vue
logWhat actually happened?
Before lint
<el-table-column prop="id" width="80" align="center" label="ID" />
After lint
<ElTableColumn prop="id" width="80" align="center" label="ID" />
The text was updated successfully, but these errors were encountered: