This is the one I use in all of my personal projects.
{ "semi": true, "singleQuote": true, "trailingComma": "es5", "printWidth": 100, "arrowParens": "always", "tabWidth": 4, "endOfLine": "lf" }
Our new company one differs by having printWidth be 140 (that's as low as I could convince them) and "arrowParens" is "avoid". I personally like having the arrowParens but I had to let that one go.
140
Want the "arrowParens"? Make them use TypeScript, the type annotation of the single arg will add the parens most of the time :)
"arrowParens"
How come "trailingComma": "es5" and not "all"? Git diffs, my dude :v
"trailingComma": "es5"
"all"
I will not mention the semicolon :v OH NO, I ACCIDENTALLY MENTIONED THE SEMICOLON :v
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
This is the one I use in all of my personal projects.
Our new company one differs by having printWidth be
140
(that's as low as I could convince them) and "arrowParens" is "avoid". I personally like having the arrowParens but I had to let that one go.Want the
"arrowParens"
? Make them use TypeScript, the type annotation of the single arg will add the parens most of the time :)How come
"trailingComma": "es5"
and not"all"
? Git diffs, my dude :vI will not mention the semicolon :v
OH NO, I ACCIDENTALLY MENTIONED THE SEMICOLON :v