-
Notifications
You must be signed in to change notification settings - Fork 0
/
prettier.config.js
37 lines (27 loc) · 1.29 KB
/
prettier.config.js
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
30
31
32
33
34
35
36
37
// Changes over the default config are marked with a double exclamation mark.
export default {
// We generally allow wider code lines, but for auto formatting this
// is quite a good rule to produce readable code.
// In ESLint we allow for code being 110 character long, comments 140 characters.
// With auto formatting in place and the current heuristics of prettier it works
// better with a default of 80 characters per line though. (default = 80)
printWidth: 80,
// Use two spaces for tabs (default = 2)
tabWidth: 2,
// Unify with convention used in JSX, HTML and CSS to use double quotes (default = false)
singleQuote: false,
// Quote properties as needed (default = as-needed)
quoteProps: "as-needed",
// Keep using double quotes in JSX like in HTML. (default: false)
jsxSingleQuote: false,
// Don't use semicolons where they are not required (default = true !!)
semi: false,
// Don't do stupid trailing commas reducing noise ratio. (default = es5 !!)
trailingComma: "none",
// More space is better for readability (default = true)
bracketSpacing: true,
// Put the > of a multi-line JSX element at the end of the last line (default = false)
bracketSameLine: false,
// Put parens of around arguments of arrow functions (default = always)
arrowParens: "always"
}