-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path.esformatter
86 lines (79 loc) · 2.14 KB
/
.esformatter
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
{
"plugins": [
"esformatter-jsx",
"esformatter-ignore",
"esformatter-line-endings"
],
"jsx": {
"formatJSX": true,
"attrsOnSameLineAsTag": false,
"maxAttrsOnTag": 1,
"firstAttributeOnSameLine": true,
"alignWithFirstAttribute": false,
"htmlOptions": {
"brace-style": "collapse-preserve-inline",
"unformatted": [
"inline", "span", "Link", "FontIcon", "TableRowColumn"
]
}
},
"line_endings": {
"example": "./src/js/app.js"
},
"preset" : "default",
"indent" : {
"value" : " ",
"IfStatementConditional": 2,
"SwitchStatement" : 0,
"TopLevelFunctionBlock" : 2
},
"lineBreak" : {
"before" : {
"ObjectExpressionOpeningBrace": -1,
"ObjectExpressionClosingBrace": -1,
"Property": -1,
"VariableDeclarationWithoutInit" : 0
},
"after": {
"AssignmentOperator": -1,
"ObjectExpressionOpeningBrace": -1,
"ObjectExpressionClosingBrace": -1,
"Property": -1
}
},
"whiteSpace" : {
"before" : {
"ArgumentList" : 1,
"ArrayExpressionClosing" : 1,
"CatchParameterList": 1,
"ExpressionClosingParentheses" : 1,
"ForInStatementExpressionClosing" : 1,
"ForOfStatementExpressionClosing" : 1,
"ForStatementExpressionClosing" : 1,
"IfStatementConditionalClosing" : 1,
"IIFEClosingParentheses": 1,
"MemberExpressionClosing" : 1,
"ObjectExpressionClosingBrace": 1,
"ParameterList" : 1,
"SwitchDiscriminantClosing" : 1,
"WhileStatementConditionalClosing" : 1
},
"after" : {
"ArgumentList" : 1,
"ArrayExpressionOpening" : 1,
"CatchParameterList": 1,
"ExpressionOpeningParentheses" : 1,
"ForInStatementExpressionOpening" : 1,
"ForOfStatementExpressionOpening" : 1,
"ForStatementExpressionOpening" : 1,
"IfStatementConditionalOpening" : 1,
"IIFEOpeningParentheses": 1,
"MemberExpressionOpening" : 1,
"ObjectExpressionOpeningBrace": 1,
"ParameterList" : 1,
"PropertyValue": -1,
"SwitchDiscriminantOpening" : 1,
"WhileStatementConditionalOpening" : 1
}
}
}