Skip to content

Commit d1e2db2

Browse files
committed
tools: enforce JS brace style with linting
Enable `brace-style` in ESLint. Ref: nodejs#7094 (comment)
1 parent 5cbc604 commit d1e2db2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.eslintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ rules:
5454

5555
# Stylistic Issues
5656
# http://eslint.org/docs/rules/#stylistic-issues
57+
brace-style: [2, "1tbs", {allowSingleLine: true}]
5758
comma-spacing: 2
5859
eol-last: 2
5960
indent: [2, 2, {SwitchCase: 1}]

0 commit comments

Comments
 (0)