From d12c43c05787de73be5a7fbb48cbe69f1688a25b Mon Sep 17 00:00:00 2001 From: LordMZTE Date: Sat, 27 Mar 2021 02:04:52 +0100 Subject: [PATCH] add haxe formatter config --- hxformat.json | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 hxformat.json diff --git a/hxformat.json b/hxformat.json new file mode 100644 index 0000000..a7d8f60 --- /dev/null +++ b/hxformat.json @@ -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": " " + } +}