Skip to content

Commit d2ae689

Browse files
committed
Create hxformat.json
1 parent bb5a089 commit d2ae689

File tree

1 file changed

+81
-0
lines changed

1 file changed

+81
-0
lines changed

hxformat.json

Lines changed: 81 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,81 @@
1+
{
2+
"lineEnds": {
3+
"leftCurly": "after",
4+
"rightCurly": "before",
5+
"objectLiteralCurly": {
6+
"leftCurly": "after"
7+
},
8+
"emptyCurly": "break"
9+
},
10+
"sameLine": {
11+
"ifElse": "same",
12+
"doWhile": "same",
13+
"tryBody": "same",
14+
"tryCatch": "same",
15+
"functionBody": "next",
16+
"anonFunctionBody": "same"
17+
},
18+
"indentation": {
19+
"trailingWhitespace": true,
20+
"character": "\t"
21+
},
22+
"emptyLines": {
23+
"enumAbstractEmptyLines": {
24+
"beginType": 0,
25+
"endType": 0,
26+
"betweenVars": 0,
27+
"afterVars": 1,
28+
"betweenFunctions": 1,
29+
"existingBetweenFields": "keep"
30+
},
31+
"importAndUsing": {
32+
"betweenImportsLevel": "firstLevelPackage",
33+
"betweenImports": 1,
34+
"beforeUsing": 1
35+
},
36+
"maxAnywhereInFile": 1
37+
},
38+
"whitespace": {
39+
"colonPolicy": "around",
40+
"caseColonPolicy": "onlyAfter",
41+
"objectFieldColonPolicy": "onlyAfter",
42+
"typeHintColonPolicy": "onlyAfter",
43+
"typeCheckColonPolicy": "around",
44+
"ternaryPolicy": "around",
45+
"arrowFunctionsPolicy": "around",
46+
"functionTypeHaxe3Policy": "around",
47+
"functionTypeHaxe4Policy": "around",
48+
"parenConfig": {
49+
"catchParens": {
50+
"openingPolicy": "none",
51+
"closingPolicy": "onlyAfter"
52+
},
53+
"ifConditionParens": {
54+
"openingPolicy": "none",
55+
"closingPolicy": "onlyAfter"
56+
},
57+
"sharpConditionParens": {
58+
"openingPolicy": "none",
59+
"closingPolicy": "none"
60+
},
61+
"switchConditionParens": {
62+
"openingPolicy": "none",
63+
"closingPolicy": "onlyAfter"
64+
},
65+
"whileConditionParens": {
66+
"openingPolicy": "none",
67+
"closingPolicy": "onlyAfter"
68+
},
69+
"funcParamParens": {
70+
"openingPolicy": "none",
71+
"closingPolicy": "onlyAfter",
72+
"removeInnerWhenEmpty": true
73+
},
74+
"anonFuncParamParens": {
75+
"openingPolicy": "none",
76+
"closingPolicy": "onlyAfter",
77+
"removeInnerWhenEmpty": true
78+
}
79+
}
80+
}
81+
}

0 commit comments

Comments
 (0)