What Prettier config do you use internally? It'd be great if we could embed it in the project as a .prettierrc, and perhaps run prettier --check on PRs to make sure contributors have run Prettier.
That's a desirable addition. Would you like to propose a PR 馃槃 ?
This is what we use at Facebook:
{
"arrowParens": "avoid",
"singleQuote": true,
"trailingComma": "all",
"bracketSpacing": false,
"jsxBracketSameLine": true,
"overrides": [
{
"files": ["*.js", "*.jsx"],
"options": {
"parser": "flow",
}
}
]
}
Thanks! On it 馃憤
Most helpful comment
Thanks! On it 馃憤