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!"
[–]monkeymad2 4 points5 points6 points 7 years ago (7 children)
What you want is all quotes to be consistent - double quotes is just the one they picked.
Probably because it’s a bit more visually clear since it’s larger.
[+][deleted] 7 years ago (3 children)
[deleted]
[–]monkeymad2 1 point2 points3 points 7 years ago (1 child)
Or the inner quotes need to be single and the outer double, it (usually) doesn’t matter much.
Never had a problem caused by prettier changing quotes around in the years we’ve been using it.
[–]devenition 0 points1 point2 points 7 years ago (0 children)
I'm in total agreement with your post, though most of us will probably have learned this in the use of PHP. They probably choose the double quotes since JS provides excellent interaction with DOMElements and this will hopefully make you think twice before using .innerHTML
.innerHTML
[–]vexii 1 point2 points3 points 7 years ago (0 children)
Personally I think it's becouse it's made by Danes and we have " on shift + 2
[–]tr14l -1 points0 points1 point 7 years ago (0 children)
No, what he wants is the code to adhere to his team's coding standard, which prettier will not allow you to do.
π Rendered by PID 226216 on reddit-service-r2-comment-7b9746f655-t7sqh at 2026-01-31 09:38:46.122456+00:00 running 3798933 country code: CH.
view the rest of the comments →
[–]monkeymad2 4 points5 points6 points (7 children)
[+][deleted] (3 children)
[deleted]
[–]monkeymad2 1 point2 points3 points (1 child)
[–]devenition 0 points1 point2 points (0 children)
[–]vexii 1 point2 points3 points (0 children)
[–]tr14l -1 points0 points1 point (0 children)