Skip to content

Commit

Permalink
prettier: check in .prettierrc.json
Browse files Browse the repository at this point in the history
Summary:
Justifications:

  - We use `singleQuote: true` is for consistency with Google’s
    JavaScript style guide.
  - We don’t use `trailingComma: "all"` because that’s incompatible with
    some compilers in our toolchain; `trailingComma: "es5"` gets us most
    of the way there.
  - Other options are due to prevalence/preference.

Test Plan:
Running Prettier on the `.prettierrc.json` file itself succeeds, so the
file is syntactically and semantically valid.

wchargin-branch: prettierrc
  • Loading branch information
wchargin committed Aug 5, 2019
1 parent 401f932 commit 01ca437
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .prettierrc.json
@@ -0,0 +1,6 @@
{
"singleQuote": true,
"trailingComma": "es5",
"bracketSpacing": false,
"arrowParens": "always"
}

0 comments on commit 01ca437

Please sign in to comment.