add haxe formatter config

This commit is contained in:
LordMZTE 2021-03-27 02:04:52 +01:00
parent a1f74c0db5
commit d12c43c057
1 changed files with 51 additions and 0 deletions

51
hxformat.json Normal file
View File

@ -0,0 +1,51 @@
{
"wrapping": {
"arrayWrap": {
"defaultWrap": "onePerLine",
"rules": [
{
"conditions": [
{
"cond": "totalItemLength <= n",
"value": 50
}
],
"type": "noWrap"
}
]
},
"methodChain": {
"rules": [
{
"conditions": [
{
"cond": "itemCount >= n",
"value": 3
}
],
"type": "onePerLine"
}
]
},
"callParameter": {
"rules": [
{
"conditions": [
{
"cond": "itemCount >= n",
"value": 3
},
{
"cond": "totalItemLength >= n",
"value": 50
}
],
"type": "onePerLine"
}
]
}
},
"indentation": {
"character": " "
}
}