DEV Community

Discussion on: Why Prettier

Collapse
 
tibfib profile image
Will Honey

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.

Collapse
 
qm3ster profile image
Mihail Malo

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 :v

I will not mention the semicolon :v
OH NO, I ACCIDENTALLY MENTIONED THE SEMICOLON :v