-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprettier.config.js
More file actions
43 lines (42 loc) · 919 Bytes
/
prettier.config.js
File metadata and controls
43 lines (42 loc) · 919 Bytes
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
module.exports = {
arrowParens: 'always',
bracketSameLine: false,
endOfLine: 'lf',
printWidth: 90,
singleQuote: true,
jsxSingleQuote: true,
bracketSpacing: true,
semi: true,
useTabs: false,
tabWidth: 4,
trailingComma: 'all',
overrides: [
{
files: 'package.json',
options: {
tabWidth: 4,
},
},
{
files: '*.less',
options: {
parser: 'less',
singleQuote: false,
},
},
{
files: '*.md',
options: {
parser: 'markdown',
tabWidth: 2,
},
},
{
// https://github.com/prettier/prettier/issues/15956
files: '*.json',
options: {
trailingComma: 'none',
},
},
],
};