-
Notifications
You must be signed in to change notification settings - Fork 129
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
Use prettier for project? #214
Comments
Hi can you tell me the benefits of adding this on the top of the eslint? |
It is an automatic, opinionated code formatter so you dont have to manually format the code yourself. It also enforces consistent code style which i think is important. also its supre convenient to not having to worry about formatting since it does all the work.. |
But what is does in this PR that eslint . —fix’ does not? |
prettier/prettier-eslint#101 |
Seconded. Prettier enforces visual styles like indentation and object formatting, rather than substantive styles like eslint. It's more and more common across the web. If you use Prettier, then your code will look more similar with other people's code. Prettier is highly opinionated and it enforces those opinions. One of the best statements I've read is that "I hate how Prettier reformats my own code, but I love how it fixes/cleans up my coworkers' code." It makes all of the code look consistent, regardless of who wrote it. |
Right now
prettier
isn't used by the project. Would be great if it is.The text was updated successfully, but these errors were encountered: