You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

.jsfmtrc 5.4KB

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