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
Add prettier and reformat. #924
Conversation
Hi! @Overload119 ! Thank you for creating the pull request! |
This is actually customizable, so if we want to change it we can: https://github.com/prettier/prettier#semicolons However, I think in general we should pick the code style that conforms to what more JS contributors across GitHub would prefer; there's an overwhelming majority of developers use semicolons. (from https://hackernoon.com/what-javascript-code-style-is-the-most-popular-5a3f5bec1f6f) |
Thank you for telling me it. |
I think using semicolons or not is just a habit of developers. Its being or not being are both fine:
If a code is unified with one style,
then I don't think it will have problems. Thanks. |
I don't think this change is necessary by following reasons.
However, thank you for your PR. |
@asmsuechan thanks of the discussion! I would say this change may not be necessary, but I listed the advantages above.
We have used this module on tens of thousands of file at Facebook, so I don't think we will have any issue here. I hope we can continue discussion! |
Hi, @Overload119.
MY OPINION: I understand your opinions. I have to ask them on committers. |
I close it because there are many conflicts. If someone want to reopen, please make other pull request. |
This pull request accomplishes 2 things
There are plenty of benefits of Prettier that you can read by reading on the project; in my opinion the best things are
I didn't want to run it on the whole codebase yet; instead I think we should migrate over time with the files we end up touching to keep the PRs still reviewable.
I currently setup Atom to auto-prettier on save; I would encourage the same for contributors.