-
Notifications
You must be signed in to change notification settings - Fork 44
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
chore(deps): update dependency eslint-plugin-prettier to v5 #4864
chore(deps): update dependency eslint-plugin-prettier to v5 #4864
Conversation
32bc9d4
to
6284c5e
Compare
Too many conflicts after merging gitlab branch. I probably will do another force push. |
50d56cc
to
43f1b62
Compare
Flaky test |
hmmmm, what's happened here @edalex-yinzi ? Before it failed on a handful of files, but suddenly you've gone and change 289 files!! And I'm not sure are about the superfluous commas in the function definitions..... 🤔 |
|
I will do another force push and try format again. |
43f1b62
to
3026a46
Compare
3026a46
to
a7220e8
Compare
Heya @edalex-yinzi , So basically this is ready for review, we just need to decide if we're happy with the extra commas. Is that correct? Please address conflicts. |
b227fd8
to
4ec3ace
Compare
Yes. |
I am not quite used to so many trailing commas, but I guess this has become the standard. |
Hi @edalex-yinzi , can you resolve the conflict and merge develop to your branch and try again ? |
Sure. |
Finally the build is OK. Do you want to review again @edalex-ian ? |
The only thing I have @PenghaiZhang , is do we want to keep all those commas? Or should we tweak the rules like we've done for others? The specific change is here (as well as how to disable it): https://prettier.io/blog/2023/07/05/3.0.0.html#change-the-default-value-for-trailingcomma-to-all-11479httpsgithubcomprettierprettierpull11479-by-fiskerhttpsgithubcomfisker-13143httpsgithubcomprettierprettierpull13143-by-sosukesuzukihttpsgithubcomsosukesuzuki Why have trailing commas:
So with that it feels like it's the idiomatic style JS peeps want and hence prettier are aligning with that. So perhaps we should just go with it. What do you think? If you're happy, feel free to merge. If you'd like to discuss, let me know. |
Although I do not like these trailing commas, maybe it's just because I am not used to it. And also because this has become the idiomatic style, I think it's better to accept it now so that we would not have too much trouble in the future when these commas become more important. |
Checklist
Description of change
To fix #4845.
Update
prettier
to v3.Format all ts files.