3 ms·
Prettier is more widespread than black, is very opinionated, and still has an option for tab indent. This is a strawman.
by scrollaway 7y ago
Prettier is more widespread than black, is very opinionated, and still has an option for tab indent. This is a strawman.
- weberc2 7y agoHow is this argument a strawman?
- stubish 7y agoPrettier's opinion then is that tabs are irrelevant to the formatting. Which is probably fine for the all the languages Prettier seems to support. Unlike Python, where tabs vs spaces matter. Mixing tabs and spaces is a problem, and a formatter cannot automatically support both or risks changing the meaning of code.
- scrollaway 7y agoI don't know how you arrive to this conclusion… prettier never mixes tabs and spaces, it would be a bug if it did. And there's no meaningful difference between tabs and spaces in Python either. Python has significant indent stops, that's all. Furthermore, prettier has a python plugin which does support tabs.