-
Notifications
You must be signed in to change notification settings - Fork 31
/
.prettierrc
29 lines (29 loc) · 929 Bytes
/
.prettierrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
"arrowParens": "always",
"bracketSpacing": false,
"jsxBracketSameLine": true,
"useTabs": false,
"singleQuote": true,
"tabWidth": 2,
"printWidth": 100,
"trailingComma": "all",
"overrides": [
# This makes it so we can have trailing commas in tsconfig.json files,
# though as noted in https://github.com/prettier/prettier/issues/5708,
# two things are suboptimal:
# - "quoteProps" does not have an "always" option, so "preserve" is the
# best we can do.
# - If your string contains an escaped double-quote, Prettier will rewrite
# it as a single-quoted string to avoid the escaping. The recommended
# workaround is to use `\u0022` instead of `\"`.
{
"files": ["**/tsconfig.json", "**/tsconfig.*.json"],
"options": {
"parser": "json5",
"quoteProps": "preserve",
"singleQuote": false,
"trailingComma": "all"
}
}
]
}