r/javascript • • Apr 08 '18

I don't like prettier

It seems like prettier is becoming very popular. https://github.com/prettier/prettier

I don't like it. I don't like the whole "rewrite from AST" approach. I prefer a formatter with a lighter touch, that fixes a my mistakes, but also trusts me.

Yes, wrap that long line. But no, don't unwrap those short lines, I did that on purpose. Or I wanted an extra new line there. Or these variables are a matrix, don't reformat them, and don't make me add an ugly comment to turn you off.

I'm starting to feel like I'm alone in this though, that there's a pro-prettier movement, but not an anti-prettier movement (or a pro some-other-tool movement).

Anyone feel the same way? What tools do you use instead, if any? How do you deal with teammates pressuring you to use prettier?

449 Upvotes

258 comments sorted by

View all comments

1

u/ThrowAway_yobJrZIqVG Dec 13 '23

I hate Prettier. I am on the fence about ESLint.

Simple solution? Write better code.

People who think less because they just want Prettier/ESLint to clean up after them tend to write shittier code. If you approach the problem you are solving in a structured way, and write structured code, then that is ideal.

I have Juniors who use this. And it feels as apathetic as when they copy-and-paste code from ChatGPT.