forked from decred/politeiagui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.prettierrc.js
51 lines (38 loc) · 1.53 KB
/
.prettierrc.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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
module.exports = {
// Include parentheses around a sole arrow function parameter
arrowParens: "avoid",
// Controls the printing of spaces inside object literals
bracketSpacing: true,
// Specify the end of line used by prettier
endOfLine: "auto",
// Specify the global whitespace sensitivity for HTML files.
// Valid options:
// 'css' - Respect the default value of CSS display property.
// 'strict' - Whitespaces are considered sensitive.
// 'ignore' - Whitespaces are considered insensitive.
htmlWhitespaceSensitivity: "css",
// 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,
// Use single quotes instead of double quotes in JSX
jsxSingleQuote: false,
// Override the parser. You shouldn't have to change this setting.
parser: "babylon",
// Fit code within this line limit
printWidth: 80,
// (Markdown) wrap prose over multiple lines
proseWrap: "preserve",
// Whether to add a semicolon at the end of every line
semi: true,
// If true, will use single instead of double quotes
singleQuote: false,
// Number of spaces it should use per tab
tabWidth: 2,
// 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: "none",
// Indent lines with tabs
useTabs: false
};