From 07e4a0b9d90524351b8fa8daa45388cb53be48db Mon Sep 17 00:00:00 2001 From: Ilia Mashkov Date: Mon, 20 Apr 2026 11:06:45 +0300 Subject: [PATCH] chore: forbid one-line and braceless cycles in dprint config --- dprint.json | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dprint.json b/dprint.json index a3a22d3..c90d305 100644 --- a/dprint.json +++ b/dprint.json @@ -33,10 +33,15 @@ "exportDeclaration.forceMultiLine": "whenMultiple", "exportDeclaration.forceSingleLine": false, "ifStatement.useBraces": "always", + "ifStatement.singleBodyPosition": "nextLine", "whileStatement.useBraces": "always", + "whileStatement.singleBodyPosition": "nextLine", "forStatement.useBraces": "always", + "forStatement.singleBodyPosition": "nextLine", "forInStatement.useBraces": "always", - "forOfStatement.useBraces": "always" + "forInStatement.singleBodyPosition": "nextLine", + "forOfStatement.useBraces": "always", + "forOfStatement.singleBodyPosition": "nextLine" }, "json": { "indentWidth": 2,