Recoil: Prettier config

Created on 17 May 2020  路  2Comments  路  Source: facebookexperimental/Recoil

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.

Most helpful comment

Thanks! On it 馃憤

All 2 comments

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 馃憤

Was this page helpful?
0 / 5 - 0 ratings

Related issues

eLeontev picture eLeontev  路  3Comments

adrianbw picture adrianbw  路  3Comments

pesterhazy picture pesterhazy  路  4Comments

karevn picture karevn  路  3Comments

Sawtaytoes picture Sawtaytoes  路  4Comments