4 ms·
We're using prettier on a project at work. I was reluctant, I thought that there would be lots of bugs and mangled code, but it has been wonderful. We run esli
by halis 9y ago
We're using prettier on a project at work. I was reluctant, I thought that there would be lots of bugs and mangled code, but it has been wonderful.
We run eslint with the fix option and prettier all in one command. It even formats JSON that you paste in for a test and changes the quotes to your preferred quote.
A+
- thatswrong0 9y agoI introduced Prettier at work because I got rather sick of seeing poorly formatted code strewn about.. it is indeed wonderful. I don't want me or my coworkers to have the freedom to write weirdly formatted or bad looking code - reading and understanding other people's code is hard enough even if it's perfectly formatted. More importantly, Prettier + ESLint fix on save makes coding quicker! I don't have to waste time getting things lined up any more.. I just write write write awful looking code and on save.. boom! it looks nice. You're not writing a novel, you're not painting a picture.. you're writing code that _I'm_ going to have to read, understand, and modify at some point. Having a consistent style and enforced line lengths makes my job easier. Don't make my job harder just because you want some extra freedom to make your code look weird. I have no idea what this author is going on about.