-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.prettierrc.js
41 lines (39 loc) · 1 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
module.exports = {
useTabs: false,
// Number of spaces per indentation level.
// tabWidth: 2,
tabWidth: 2,
// Print semicolons. semi: true,
// The line length where Prettier will try wrap.
printWidth: 120,
// Use single quotes instead of double quotes.
singleQuote: true,
// Include parentheses around a sole arrow function parameter.
arrowParens: 'avoid',
// Print semicolons at the ends of statements.
semi: true,
// Print spaces between brackets.
bracketSpacing: true,
// Print trailing commas wherever possible when multi-line.
trailingComma: 'es5',
// Put > on the new line instead of at last line.
jsxBracketSameLine: false,
// Use single quotes in JSX.
jsxSingleQuote: true,
// How to handle whitespaces in HTML.
htmlWhitespaceSensitivity: 'css',
// How to wrap prose.
proseWrap: 'always',
overrides: [
{
files: '*.wxml',
options: {
parser: 'html',
},
},
{
files: '*.json',
options: { parser: 'json' },
},
],
}