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