This repository has been archived by the owner on Feb 18, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
.jsfmtrc
executable file
·74 lines (74 loc) · 1.78 KB
/
.jsfmtrc
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
{
"preset": "default",
"indent": {
"value": "\t",
"IfStatementConditional": 2,
"SwitchStatement": 1,
"TopLevelFunctionBlock": 1
},
"lineBreak": {
"before": {
"VariableDeclarationWithoutInit": 0,
"ArrayExpressionClosing": 1
},
"after": {
"AssignmentOperator": -1,
"ArrayExpressionOpening": 1,
"ArrayExpressionComma": 1
}
},
"whiteSpace": {
"before": {
"ArgumentList": 1,
"ArgumentListArrayExpression": 1,
"ArgumentListFunctionExpression": 1,
"ArgumentListObjectExpression": 1,
"ArrayExpressionClosing": 1,
"ExpressionClosingParentheses": 1,
"ForInStatementExpressionClosing": 1,
"ForStatementExpressionClosing": 1,
"IfStatementConditionalClosing": 1,
"MemberExpressionClosing": 1,
"ParameterList": 1,
"SwitchDiscriminantClosing": 1,
"WhileStatementConditionalClosing": 1,
"CallExpression": -1
},
"after": {
"ArgumentList": 1,
"ArgumentListArrayExpression": 1,
"ArgumentListFunctionExpression": 1,
"ArgumentListObjectExpression": 1,
"ArrayExpressionOpening": 1,
"ExpressionOpeningParentheses": 1,
"ForInStatementExpressionOpening": 1,
"ForStatementExpressionOpening": 1,
"IfStatementConditionalOpening": 1,
"MemberExpressionOpening": 1,
"ParameterList": 1,
"SwitchDiscriminantOpening": 1,
"WhileStatementConditionalOpening": 1,
"CallExpression": 0
}
},
"collapseObjects": {
"ObjectExpression": {
"maxLineLength": 120,
"maxKeys": 1,
"forbidden": [ "FunctionExpression" ]
},
"ArrayExpression": {
"maxLineLength": 120,
"maxKeys": 10,
"forbidden": [ "FunctionExpression" ]
}
},
"plugins": [
"esformatter-quotes",
"esformatter-semicolons",
"esformatter-braces",
"esformatter-dot-notation",
"esformatter-special-bangs",
"esformatter-collapse-objects-a8c"
]
}