Add option philosophy to docs (#3855)
This commit is contained in:
1 parent
67bf3e51df
commit
e591b00005
3 files changed
+31
No files matched your search
@@ -7,6 +7,8 @@ title: Why Prettier?
|
||||
|
||||
By far the biggest reason for adopting Prettier is to stop all the on-going debates over styles. It is generally accepted that having a common style guide is valuable for a project and team but getting there is a very painful and unrewarding process. People get very emotional around particular ways of writing code and nobody likes spending time writing and receiving nits.
|
||||
|
||||
So why choose the "Prettier style guide" over any other random style guide? Because Prettier is the only "style guide" that is fully automatic. Even if Prettier does not format all code 100% the way you'd like, it's worth the "sacrifice" given the unique benefits of Prettier, don't you think?
|
||||
|
||||
* “We want to free mental threads and end discussions around style. While sometimes fruitful, these discussions are for the most part wasteful.”
|
||||
* “Literally had an engineer go through a huge effort of cleaning up all of our code because we were debating ternary style for the longest time and were inconsistent about it. It was dumb, but it was a weird on-going "great debate" that wasted lots of little back and forth bits. It's far easier for us all to agree now: just run Prettier, and go with that style.”
|
||||
* “Getting tired telling people how to style their product code.”
|
||||
|
||||
Reference in new issue
Block a user