Hacker News new | ask | show | jobs
by city41 2022 days ago
You seem to think I am stating Prettier removes all arguments and opinions. I said it "reduces the opinion surface". If some other formatter becomes popular, debating between it and Prettier is still way preferable over arguing over single versus double quote? Space around params? Opening brace at end of line or new line? Should if statements always have brackets? Should else statements start on a new line? Template strings or concatenation? Single or multi var? Let or const? Line up variable values on the same column? How many blank lines between functions? How long should a line be? How to format ternaries?

I could go on and on and on. And on some teams I've been on, people have. I just roll my eyes at all of this. None of it matters. At all!

Prettier takes 10 seconds to set up and our prettierrc file typically has one or two settings at most, often we don't stray from the defaults at all. It's totally painless. It'd take a very compelling tool to compete with that. If one comes along, sure, whatever. The goal is to minimize bikeshedding. Truly eliminating it is a tall order.