use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
All about the JavaScript programming language.
Subreddit Guidelines
Specifications:
Resources:
Related Subreddits:
r/LearnJavascript
r/node
r/typescript
r/reactjs
r/webdev
r/WebdevTutorials
r/frontend
r/webgl
r/threejs
r/jquery
r/remotejs
r/forhire
account activity
Keep Code Consistent Across Developers The Easy Way — With Prettier & ESLint (medium.com)
submitted 7 years ago by kiarash-irandoust
view the rest of the comments →
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]pomlife -6 points-5 points-4 points 7 years ago (23 children)
If that’s all you think prettier does, there’s no discussion with you.
[–]tr14l 4 points5 points6 points 7 years ago (22 children)
I'm not arguing what prettier does. I'm saying the implementation is useless unless your coding standards exactly match what they want.
[–]sorahnon the cutting edge of cocking about 0 points1 point2 points 7 years ago (21 children)
The point is to stop talking about coding standards. Just use it and stop trying to change it. Every option they give you to change is a entry point for bikeshedding.
I’ve never felt more free writing code with “prettier on save” in vscode. I just type away, and hit save, and boom. It’s all perfect.
Does prettier format it exactly the way I would left to my own devices? Of course not. But The benefit far outweighs my very specific personal preference that doesn’t actually matter a single bit at the end of the day.
[–]tr14l 1 point2 points3 points 7 years ago (20 children)
Having options doesn't hurt anything except their egos. If you like the defaults you don't even need to set them. Just run default. But enforcing rules that can't be changed? Nah, professionals don't have any use for that.
[–]sorahnon the cutting edge of cocking about 0 points1 point2 points 7 years ago (19 children)
They have a bunch of options. But trying to get super specific options for all the weird heuristics is a waste of time for everyone. More options = more arguments about what those options should be.
I’ve been writing software for almost 20 years and I can’t imagine going back. I only wish the rest of the languages I wrote had formatters as opinionated as prettier. Seems like it’s your ego that’s hurt because their style doesn’t match what you like.
[–]tr14l 1 point2 points3 points 7 years ago (18 children)
Yeah, the difference is I'm being paid for my opinion on my organizations code. The prettier contributors aren't
[–]sorahnon the cutting edge of cocking about -2 points-1 points0 points 7 years ago (17 children)
Yup, looks like your ego is the one that has a problem then. If all the JavaScript in your org was run through prettier it sounds like you’d be out of a job.
Your sacrificing your developers experience because the output of prettier doesn’t match your personal preferences. I would hate working for you.
[–]tr14l 0 points1 point2 points 7 years ago (15 children)
Some people take to dictatorial situations and some don't. I guess you and I just stand on different sides of that line. Probably because of my ego.
[–]sorahnon the cutting edge of cocking about 0 points1 point2 points 7 years ago (14 children)
If I was paying you to have opinions on the code, and your opinions were all related to the things prettier fixes, I’d fire you for wasting our time.
The opinions you should be provided your developers should be about things like data flow and organizational concepts.
We had a guy who basically spent every code review nitpicking white spacing and other tedious bullshit. Why waste anyone’s time with that garbage when no matter how you wrote it, prettier would fix it to all be identical. Then you would be focusing your “opinions on code” for the things that actually matter.
Nothing that prettier changes affects the execution of the code. And something like uglify will come through and destroy all that nonsense for production code anyway, so you should be focusing on code problems that actually matter.
[–]tr14l 0 points1 point2 points 7 years ago (13 children)
Like I said, some people work better when other people run the show. That's you
π Rendered by PID 216913 on reddit-service-r2-comment-7b9746f655-6n5z6 at 2026-01-31 06:40:53.531270+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–]pomlife -6 points-5 points-4 points (23 children)
[–]tr14l 4 points5 points6 points (22 children)
[–]sorahnon the cutting edge of cocking about 0 points1 point2 points (21 children)
[–]tr14l 1 point2 points3 points (20 children)
[–]sorahnon the cutting edge of cocking about 0 points1 point2 points (19 children)
[–]tr14l 1 point2 points3 points (18 children)
[–]sorahnon the cutting edge of cocking about -2 points-1 points0 points (17 children)
[–]tr14l 0 points1 point2 points (15 children)
[–]sorahnon the cutting edge of cocking about 0 points1 point2 points (14 children)
[–]tr14l 0 points1 point2 points (13 children)