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

Commit

Permalink
Preset: add disallowNewlineBeforeBlockStatements rule
Browse files Browse the repository at this point in the history
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
  • Loading branch information
mauriciomassaia authored and markelog committed Feb 3, 2016
1 parent 998eb2d commit 9b59f46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion presets/mdcs.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@
"afterConsequent": true,
"beforeAlternate": true
},
"disallowTrailingWhitespace": true
"disallowTrailingWhitespace": true,
"disallowNewlineBeforeBlockStatements": true
}

0 comments on commit 9b59f46

Please sign in to comment.