Skip to content
This repository was archived by the owner on Mar 23, 2024. It is now read-only.

Commit 9b59f46

Browse files
mauriciomassaiamarkelog
authored andcommitted
Preset: add disallowNewlineBeforeBlockStatements rule
From https://github.com/mrdoob/three.js/wiki/Mr.doob's-Code-Style%E2%84%A2 "The opening brackets should always follow a space and not start at a new line" Closes gh-2116
1 parent 998eb2d commit 9b59f46

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

presets/mdcs.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,5 +29,6 @@
2929
"afterConsequent": true,
3030
"beforeAlternate": true
3131
},
32-
"disallowTrailingWhitespace": true
32+
"disallowTrailingWhitespace": true,
33+
"disallowNewlineBeforeBlockStatements": true
3334
}

0 commit comments

Comments
 (0)