1 | {
|
2 | "preset": "default",
|
3 | "plugins": [
|
4 | "esformatter-quotes",
|
5 | "esformatter-semicolons",
|
6 | "esformatter-braces",
|
7 | "esformatter-quote-props",
|
8 | "esformatter-dot-notation",
|
9 | "esformatter-var-each",
|
10 | "esformatter-parseint",
|
11 | "esformatter-eol-last",
|
12 | "esformatter-spaced-lined-comment",
|
13 | "esformatter-remove-trailing-commas"
|
14 | ],
|
15 | "quotes": {
|
16 | "type": "single",
|
17 | "avoidEscape": false
|
18 | },
|
19 | "indent": {
|
20 | "value": " "
|
21 | },
|
22 | "whiteSpace" : {
|
23 | "value" : " ",
|
24 | "removeTrailing" : 1,
|
25 | "before" : {
|
26 | "ArrayExpressionOpening" : 0,
|
27 | "ArrayExpressionClosing" : 0,
|
28 | "ArrayExpressionComma" : 0,
|
29 | "ArgumentComma" : 0,
|
30 | "ArgumentList" : 0,
|
31 | "ArgumentListArrayExpression" : 0,
|
32 | "ArgumentListFunctionExpression" : 0,
|
33 | "ArgumentListObjectExpression" : 0,
|
34 | "AssignmentOperator" : 1,
|
35 | "BinaryExpression": 0,
|
36 | "BinaryExpressionOperator" : 1,
|
37 | "BlockComment" : 1,
|
38 | "CallExpression" : -1,
|
39 | "CatchParameterList" : 0,
|
40 | "CatchOpeningBrace" : 1,
|
41 | "CatchClosingBrace" : 1,
|
42 | "CatchKeyword" : 1,
|
43 | "CommaOperator" : 0,
|
44 | "ConditionalExpressionConsequent" : 1,
|
45 | "ConditionalExpressionAlternate" : 1,
|
46 | "DoWhileStatementOpeningBrace" : 1,
|
47 | "DoWhileStatementClosingBrace" : 1,
|
48 | "DoWhileStatementConditional" : 1,
|
49 | "EmptyStatement" : 0,
|
50 | "ExpressionClosingParentheses" : 0,
|
51 | "FinallyKeyword" : -1,
|
52 | "FinallyOpeningBrace" : 1,
|
53 | "FinallyClosingBrace" : 1,
|
54 | "ForInStatement" : 1,
|
55 | "ForInStatementExpressionOpening" : 1,
|
56 | "ForInStatementExpressionClosing" : 0,
|
57 | "ForInStatementOpeningBrace" : 1,
|
58 | "ForInStatementClosingBrace" : 1,
|
59 | "ForStatement" : 1,
|
60 | "ForStatementExpressionOpening" : 1,
|
61 | "ForStatementExpressionClosing" : 0,
|
62 | "ForStatementOpeningBrace" : 1,
|
63 | "ForStatementClosingBrace" : 1,
|
64 | "ForStatementSemicolon" : 0,
|
65 | "FunctionDeclarationOpeningBrace" : 1,
|
66 | "FunctionDeclarationClosingBrace" : 1,
|
67 | "FunctionExpressionOpeningBrace" : 1,
|
68 | "FunctionExpressionClosingBrace" : 1,
|
69 | "IfStatementConditionalOpening" : 1,
|
70 | "IfStatementConditionalClosing" : 0,
|
71 | "IfStatementOpeningBrace" : 1,
|
72 | "IfStatementClosingBrace" : 1,
|
73 | "ElseStatementOpeningBrace" : 1,
|
74 | "ElseStatementClosingBrace" : 1,
|
75 | "ElseIfStatementOpeningBrace" : 1,
|
76 | "ElseIfStatementClosingBrace" : 1,
|
77 | "MemberExpressionClosing" : 0,
|
78 | "LineComment" : 1,
|
79 | "LogicalExpressionOperator" : 1,
|
80 | "Property" : 1,
|
81 | "PropertyValue" : 1,
|
82 | "ParameterComma" : 0,
|
83 | "ParameterList" : 0,
|
84 | "SwitchDiscriminantOpening" : 1,
|
85 | "SwitchDiscriminantClosing" : 0,
|
86 | "ThrowKeyword": 1,
|
87 | "TryKeyword": -1,
|
88 | "TryOpeningBrace" : 1,
|
89 | "TryClosingBrace" : 1,
|
90 | "UnaryExpressionOperator": 0,
|
91 | "VariableName" : 1,
|
92 | "VariableValue" : 1,
|
93 | "WhileStatementConditionalOpening" : 1,
|
94 | "WhileStatementConditionalClosing" : 0,
|
95 | "WhileStatementOpeningBrace" : 1,
|
96 | "WhileStatementClosingBrace" : 1
|
97 | },
|
98 |
|
99 | "after" : {
|
100 | "ArrayExpressionOpening" : 0,
|
101 | "ArrayExpressionClosing" : 0,
|
102 | "ArrayExpressionComma" : 1,
|
103 | "ArgumentComma" : 1,
|
104 | "ArgumentList" : 0,
|
105 | "ArgumentListArrayExpression" : 0,
|
106 | "ArgumentListFunctionExpression" : 0,
|
107 | "ArgumentListObjectExpression" : 0,
|
108 | "AssignmentOperator" : 1,
|
109 | "BinaryExpression": 0,
|
110 | "BinaryExpressionOperator" : 1,
|
111 | "BlockComment" : 1,
|
112 | "CallExpression" : 0,
|
113 | "CatchParameterList" : 0,
|
114 | "CatchOpeningBrace" : 1,
|
115 | "CatchClosingBrace" : 1,
|
116 | "CatchKeyword" : 1,
|
117 | "CommaOperator" : 1,
|
118 | "ConditionalExpressionConsequent" : 1,
|
119 | "ConditionalExpressionTest" : 1,
|
120 | "DoWhileStatementOpeningBrace" : 1,
|
121 | "DoWhileStatementClosingBrace" : 1,
|
122 | "DoWhileStatementBody" : 1,
|
123 | "EmptyStatement" : 0,
|
124 | "ExpressionOpeningParentheses" : 0,
|
125 | "FinallyKeyword" : -1,
|
126 | "FinallyOpeningBrace" : 1,
|
127 | "FinallyClosingBrace" : 1,
|
128 | "ForInStatement" : 1,
|
129 | "ForInStatementExpressionOpening" : 0,
|
130 | "ForInStatementExpressionClosing" : 1,
|
131 | "ForInStatementOpeningBrace" : 1,
|
132 | "ForInStatementClosingBrace" : 1,
|
133 | "ForStatement" : 1,
|
134 | "ForStatementExpressionOpening" : 0,
|
135 | "ForStatementExpressionClosing" : 1,
|
136 | "ForStatementClosingBrace" : 1,
|
137 | "ForStatementOpeningBrace" : 1,
|
138 | "ForStatementSemicolon" : 1,
|
139 | "FunctionReservedWord": 0,
|
140 | "FunctionName" : 0,
|
141 | "FunctionExpressionOpeningBrace" : 1,
|
142 | "FunctionExpressionClosingBrace" : 0,
|
143 | "FunctionDeclarationOpeningBrace" : 0,
|
144 | "FunctionDeclarationClosingBrace" : 0,
|
145 | "IfStatementConditionalOpening" : 0,
|
146 | "IfStatementConditionalClosing" : 1,
|
147 | "IfStatementOpeningBrace" : 1,
|
148 | "IfStatementClosingBrace" : 1,
|
149 | "ElseStatementOpeningBrace" : 1,
|
150 | "ElseStatementClosingBrace" : 1,
|
151 | "ElseIfStatementOpeningBrace" : 1,
|
152 | "ElseIfStatementClosingBrace" : 1,
|
153 | "MemberExpressionOpening" : 0,
|
154 | "LogicalExpressionOperator" : 1,
|
155 | "ObjectExpressionClosingBrace": 0,
|
156 | "PropertyName" : 0,
|
157 | "PropertyValue" : 0,
|
158 | "ParameterComma" : 1,
|
159 | "ParameterList" : 0,
|
160 | "SwitchDiscriminantOpening" : 0,
|
161 | "SwitchDiscriminantClosing" : 1,
|
162 | "ThrowKeyword": 1,
|
163 | "TryKeyword": -1,
|
164 | "TryOpeningBrace" : 1,
|
165 | "TryClosingBrace" : 1,
|
166 | "UnaryExpressionOperator": 0,
|
167 | "VariableName" : 1,
|
168 | "WhileStatementConditionalOpening" : 0,
|
169 | "WhileStatementConditionalClosing" : 1,
|
170 | "WhileStatementOpeningBrace" : 1,
|
171 | "WhileStatementClosingBrace" : 1
|
172 | }
|
173 | }
|
174 | }
|