1 | {
|
2 | "indent" : {
|
3 | "ReturnStatement": ">=1",
|
4 | "value": " "
|
5 | },
|
6 |
|
7 | "lineBreak" : {
|
8 | "value" : "\n",
|
9 |
|
10 | "before" : {
|
11 | "AssignmentExpression" : -1,
|
12 | "AssignmentOperator": -1,
|
13 | "BlockStatement" : -1,
|
14 | "CallExpression" : -1,
|
15 | "ConditionalExpression" : -1,
|
16 | "CatchOpeningBrace" : 0,
|
17 | "CatchClosingBrace" : -1,
|
18 | "CatchKeyword": 0,
|
19 | "DeleteOperator" : -1,
|
20 | "DoWhileStatement" : -1,
|
21 | "DoWhileStatementOpeningBrace" : 0,
|
22 | "DoWhileStatementClosingBrace" : -1,
|
23 | "EndOfFile" : 1,
|
24 | "EmptyStatement" : -1,
|
25 | "FinallyKeyword" : -1,
|
26 | "FinallyOpeningBrace" : 0,
|
27 | "FinallyClosingBrace" : -1,
|
28 | "ForInStatement" : -1,
|
29 | "ForInStatementExpressionOpening" : -1,
|
30 | "ForInStatementExpressionClosing" : -1,
|
31 | "ForInStatementOpeningBrace" : 0,
|
32 | "ForInStatementClosingBrace" : -1,
|
33 | "ForStatement" : -1,
|
34 | "ForStatementExpressionOpening" : -1,
|
35 | "ForStatementExpressionClosing" : -1,
|
36 | "ForStatementOpeningBrace" : 0,
|
37 | "ForStatementClosingBrace" : -1,
|
38 | "FunctionExpression" : -1,
|
39 | "FunctionExpressionOpeningBrace" : 0,
|
40 | "FunctionExpressionClosingBrace" : -1,
|
41 | "FunctionDeclaration" : -1,
|
42 | "FunctionDeclarationOpeningBrace" : 0,
|
43 | "FunctionDeclarationClosingBrace" : -1,
|
44 | "IfStatement" : -1,
|
45 | "IfStatementOpeningBrace" : 0,
|
46 | "IfStatementClosingBrace" : -1,
|
47 | "ElseIfStatement" : -1,
|
48 | "ElseIfStatementOpeningBrace" : 0,
|
49 | "ElseIfStatementClosingBrace" : -1,
|
50 | "ElseStatement" : 0,
|
51 | "ElseStatementOpeningBrace" : 0,
|
52 | "ElseStatementClosingBrace" : -1,
|
53 | "LogicalExpression" : -1,
|
54 | "ObjectExpressionClosingBrace" : -1,
|
55 | "Property" : -1,
|
56 | "ReturnStatement" : -1,
|
57 | "SwitchOpeningBrace" : 0,
|
58 | "SwitchClosingBrace" : -1,
|
59 | "ThisExpression" : -1,
|
60 | "ThrowStatement" : -1,
|
61 | "TryKeyword": -1,
|
62 | "TryOpeningBrace" : 0,
|
63 | "TryClosingBrace" : -1,
|
64 | "VariableName" : -1,
|
65 | "VariableValue" : -1,
|
66 | "VariableDeclaration" : -1,
|
67 | "VariableDeclarationSemiColon": -1,
|
68 | "VariableDeclarationWithoutInit" : -1,
|
69 | "WhileStatement" : -1,
|
70 | "WhileStatementOpeningBrace" : 0,
|
71 | "WhileStatementClosingBrace" : -1
|
72 | },
|
73 |
|
74 | "after" : {
|
75 | "AssignmentExpression" : -1,
|
76 | "AssignmentOperator" : -1,
|
77 | "BlockStatement" : -1,
|
78 | "CallExpression" : -1,
|
79 | "CatchOpeningBrace" : "<=1",
|
80 | "CatchClosingBrace" : -1,
|
81 | "CatchKeyword": 0,
|
82 | "ConditionalExpression" : -1,
|
83 | "DeleteOperator" : -1,
|
84 | "DoWhileStatement" : -1,
|
85 | "DoWhileStatementOpeningBrace" : "<=1",
|
86 | "DoWhileStatementClosingBrace" : -1,
|
87 | "EmptyStatement" : 1,
|
88 | "FinallyKeyword" : -1,
|
89 | "FinallyOpeningBrace" : "<=2",
|
90 | "FinallyClosingBrace" : -1,
|
91 | "ForInStatement" : -1,
|
92 | "ForInStatementExpressionOpening" : -1,
|
93 | "ForInStatementExpressionClosing" : -1,
|
94 | "ForInStatementOpeningBrace" : "<=1",
|
95 | "ForInStatementClosingBrace" : -1,
|
96 | "ForStatement" : -1,
|
97 | "ForStatementExpressionOpening" : -1,
|
98 | "ForStatementExpressionClosing" : -1,
|
99 | "ForStatementOpeningBrace" : "<=1",
|
100 | "ForStatementClosingBrace" : -1,
|
101 | "FunctionExpression" : -1,
|
102 | "FunctionExpressionOpeningBrace" : "<=1",
|
103 | "FunctionExpressionClosingBrace" : -1,
|
104 | "FunctionDeclaration" : -1,
|
105 | "FunctionDeclarationOpeningBrace" : "<=1",
|
106 | "FunctionDeclarationClosingBrace" : -1,
|
107 | "IfStatement" : -1,
|
108 | "IfStatementOpeningBrace" : "<=1",
|
109 | "IfStatementClosingBrace" : -1,
|
110 | "ElseIfStatement" : -1,
|
111 | "ElseIfStatementOpeningBrace" : "<=1",
|
112 | "ElseIfStatementClosingBrace" : -1,
|
113 | "ElseStatement" : -1,
|
114 | "ElseStatementOpeningBrace" : "<=1",
|
115 | "ElseStatementClosingBrace" : -1,
|
116 | "LogicalExpression" : -1,
|
117 | "MemberExpressionClosing" : ">=0",
|
118 | "ObjectExpressionOpeningBrace" : "<=1",
|
119 | "Property" : -1,
|
120 | "PropertyValue" : -1,
|
121 | "ReturnStatement" : -1,
|
122 | "SwitchOpeningBrace" : "<=1",
|
123 | "SwitchClosingBrace" : -1,
|
124 | "ThisExpression" : -1,
|
125 | "ThrowStatement" : -1,
|
126 | "TryKeyword": -1,
|
127 | "TryOpeningBrace" : "<=1",
|
128 | "TryClosingBrace" : -1,
|
129 | "VariableDeclaration" : -1,
|
130 | "WhileStatement" : -1,
|
131 | "WhileStatementOpeningBrace" : "<=1",
|
132 | "WhileStatementClosingBrace" : -1
|
133 | }
|
134 | },
|
135 |
|
136 |
|
137 | "whiteSpace" : {
|
138 | "value" : " ",
|
139 | "removeTrailing" : 1,
|
140 |
|
141 | "before" : {
|
142 | "ArrayExpressionOpening" : -1,
|
143 | "ArrayExpressionClosing" : -1,
|
144 | "ArrayExpressionComma" : -1,
|
145 | "ArgumentComma" : -1,
|
146 | "ArgumentList" : 0,
|
147 | "AssignmentOperator" : 1,
|
148 | "BinaryExpression": -1,
|
149 | "ConditionalExpressionConsequent" : 1,
|
150 | "ForStatementClosingBrace" : -1,
|
151 | "ForStatementSemicolon" : 0,
|
152 | "FunctionDeclarationOpeningBrace" : 1,
|
153 | "FunctionDeclarationClosingBrace" : -1,
|
154 | "FunctionExpressionOpeningBrace" : 1,
|
155 | "FunctionExpressionClosingBrace" : -1,
|
156 | "IfStatementConditionalOpening" : 1,
|
157 | "IfStatementConditionalClosing" : -1,
|
158 | "IfStatementOpeningBrace" : 1,
|
159 | "IfStatementClosingBrace" : -1,
|
160 | "ElseStatementOpeningBrace" : 1,
|
161 | "ElseStatementClosingBrace" : -1,
|
162 | "ElseIfStatementOpeningBrace" : 1,
|
163 | "ElseIfStatementClosingBrace" : -1,
|
164 | "MemberExpressionClosing" : -1,
|
165 | "ObjectExpressionOpeningBrace": -1,
|
166 | "ObjectExpressionClosingBrace": -1,
|
167 | "ObjectPatternOpeningBrace": -1,
|
168 | "ObjectPatternClosingBrace": -1,
|
169 | "ObjectPatternComma": 0,
|
170 | "LineComment" : 1,
|
171 | "LogicalExpressionOperator" : 1,
|
172 | "Property" : -1,
|
173 | "PropertyValue" : 1,
|
174 | "ParameterComma" : -1,
|
175 | "ParameterList" : -1,
|
176 | "SwitchDiscriminantOpening" : 1,
|
177 | "SwitchDiscriminantClosing" : -1,
|
178 | "ThrowKeyword": -1,
|
179 | "TryKeyword": -1,
|
180 | "TryOpeningBrace" : 1,
|
181 | "TryClosingBrace" : -1,
|
182 | "UnaryExpressionOperator": -1,
|
183 | "VariableName" : -1,
|
184 | "VariableValue" : 1,
|
185 | "WhileStatementConditionalOpening" : -1,
|
186 | "WhileStatementConditionalClosing" : -1,
|
187 | "WhileStatementOpeningBrace" : -1,
|
188 | "WhileStatementClosingBrace" : -1
|
189 | },
|
190 |
|
191 | "after" : {
|
192 | "ArrayExpressionOpening" : -1,
|
193 | "ArrayExpressionClosing" : -1,
|
194 | "ArrayExpressionComma" : 1,
|
195 | "ArgumentComma" : 1,
|
196 | "ArgumentList" : 0,
|
197 | "AssignmentOperator" : 1,
|
198 | "BinaryExpression": -1,
|
199 | "BinaryExpressionOperator" : 1,
|
200 | "BlockComment" : -1,
|
201 | "CallExpression" : -1,
|
202 | "CatchParameterList" : -1,
|
203 | "CatchOpeningBrace" : -1,
|
204 | "CatchClosingBrace" : -1,
|
205 | "CatchKeyword" : -1,
|
206 | "CommaOperator" : 1,
|
207 | "ConditionalExpressionConsequent" : 1,
|
208 | "ConditionalExpressionTest" : 1,
|
209 | "DoWhileStatementOpeningBrace" : -1,
|
210 | "DoWhileStatementClosingBrace" : -1,
|
211 | "DoWhileStatementBody" : -1,
|
212 | "EmptyStatement" : -1,
|
213 | "ExpressionOpeningParentheses" : -1,
|
214 | "FinallyKeyword" : -1,
|
215 | "FinallyOpeningBrace" : -1,
|
216 | "FinallyClosingBrace" : -1,
|
217 | "ForInStatement" : -1,
|
218 | "ForInStatementExpressionOpening" : -1,
|
219 | "ForInStatementExpressionClosing" : -1,
|
220 | "ForInStatementOpeningBrace" : -1,
|
221 | "ForInStatementClosingBrace" : -1,
|
222 | "ForStatement" : -1,
|
223 | "ForStatementExpressionOpening" : -1,
|
224 | "ForStatementExpressionClosing" : -1,
|
225 | "ForStatementClosingBrace" : -1,
|
226 | "ForStatementOpeningBrace" : -1,
|
227 | "ForStatementSemicolon" : -1,
|
228 | "FunctionReservedWord": 1,
|
229 | "FunctionName" : 1,
|
230 | "FunctionExpressionOpeningBrace" : -1,
|
231 | "FunctionExpressionClosingBrace" : -1,
|
232 | "FunctionDeclarationOpeningBrace" : -1,
|
233 | "FunctionDeclarationClosingBrace" : -1,
|
234 | "IfStatementConditionalOpening" : -1,
|
235 | "IfStatementConditionalClosing" : -1,
|
236 | "IfStatementOpeningBrace" : -1,
|
237 | "IfStatementClosingBrace" : -1,
|
238 | "ElseStatementOpeningBrace" : -1,
|
239 | "ElseStatementClosingBrace" : -1,
|
240 | "ElseIfStatementOpeningBrace" : -1,
|
241 | "ElseIfStatementClosingBrace" : -1,
|
242 | "MemberExpressionOpening" : -1,
|
243 | "LogicalExpressionOperator" : 1,
|
244 | "ObjectExpressionOpeningBrace": -1,
|
245 | "ObjectExpressionClosingBrace": -1,
|
246 | "ObjectPatternOpeningBrace": -1,
|
247 | "ObjectPatternClosingBrace": -1,
|
248 | "ObjectPatternComma": 1,
|
249 | "PropertyName" : 0,
|
250 | "PropertyValue" : -1,
|
251 | "ParameterComma" : 1,
|
252 | "ParameterList" : -1,
|
253 | "SwitchDiscriminantOpening" : -1,
|
254 | "SwitchDiscriminantClosing" : 1,
|
255 | "ThrowKeyword": -1,
|
256 | "TryKeyword": -1,
|
257 | "TryOpeningBrace" : -1,
|
258 | "TryClosingBrace" : -1,
|
259 | "UnaryExpressionOperator": -1,
|
260 | "VariableName" : 1,
|
261 | "VariableDeclarationSemiColon": -1,
|
262 | "WhileStatementConditionalOpening" : -1,
|
263 | "WhileStatementConditionalClosing" : -1,
|
264 | "WhileStatementOpeningBrace" : -1,
|
265 | "WhileStatementClosingBrace" : -1
|
266 | }
|
267 | },
|
268 |
|
269 | "jsx": {
|
270 | "attrsOnSameLineAsTag": false,
|
271 | "maxAttrsOnTag": 2
|
272 | },
|
273 |
|
274 | "plugins": [
|
275 | "esformatter-quotes",
|
276 | "esformatter-literal-notation",
|
277 | "esformatter-spaced-lined-comment",
|
278 | "esformatter-semicolons",
|
279 | "esformatter-semicolon-first",
|
280 | "esformatter-jsx"
|
281 | ],
|
282 |
|
283 | "quotes": {
|
284 | "type": "single",
|
285 | "avoidEscape": true
|
286 | }
|
287 | }
|