-
Notifications
You must be signed in to change notification settings - Fork 22
/
prettier.config.js
33 lines (26 loc) · 1.06 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
module.exports = {
// Fit code within this line limit
"printWidth": 79,
// Specify the number of spaces per indentation-level.
"tabWidth": 2,
// If true, will use single instead of double quotes
"singleQuote": true,
// Controls the printing of trailing commas wherever possible.
//
// Valid options:
//
// "none" - No trailing commas
// "es5" - Trailing commas where valid in ES5 (objects, arrays, etc)
// "all" - Trailing commas wherever possible (function arguments)
"trailingComma": "all",
// Controls the printing of spaces inside array and objects
"bracketSpacing": true,
// If true, puts the `>` of a multi-line jsx element at the end of
// the last line instead of being alone on the next line
"jsxBracketSameLine": false,
// Which parser to use. Valid options are "flow" and "babylon"
"parser": "babylon",
// Whether to add a semicolon at the end of every line (semi: true),
// or only at the beginning of lines that may introduce ASI failures (semi: false)
"semi": false
}