
Prettier is a great tool for automatically formatting your messy code. But being an opinionated code formatter, Prettier can sometimes cause some issues. In this video, I'd like to explain why I no longer use Prettier in my own projects, as well as some alternatives to Prettier. Now you can still get all the time-saving benefits of having your code formatted without the rigidity of Prettier.
Why I Don't Use Prettier:
https://antfu.me/posts/why-not-prettier 🌐 My website:
https://ericmurphy.xyz💸 Support the Channel:
https://ericmurphy.xyz/donate🎥 Watch my videos on Odysee:
https://odysee.com/@ericnmurphy💻 My GitHub:
https://github.com/ericmurphyxyz0:00 What is Prettier?
0:37 Why I stopped using Prettier
1:26 Prettier's opinionatedness
2:17 Prettier's automatic line breaks
5:40 Line break issues in GitHub
6:41 Auto-formatting without Prettier
8:52 Consistent code styling in teams
9:53 Fixing code styling with ESLint
11:49 When should you use Prettier?
12:26 Conclusion
...
https://www.youtube.com/watch?v=DQUkYHQ4aUA