by adminu · 3y ago · 0 comments
I had the same views on code prettiers. I thought, aligning your code by hand makes you think about the structure. That you'd invest more time in making your code readable and thus it would be more readable.
When I first got to use prettier on a team and accepted it's value, the benefits I perceived were so vast, that my arguments seemed irrelevant in comparison.
[0]: https://www.typescriptlang.org/docs/handbook/type-inference....
at least once you want to do anything meaningful with that x
You can also generate API types based on your backend.
Another point: You can create types for your API client programatically, meaning your front-end can be aware of exactly what types your backend is returning. This cannot be accomplished with intellisense.