Skip to content

Commit d1a50b3

Browse files
TrottMylesBorins
authored andcommitted
tools: enforce JS brace style with linting
Enable `brace-style` in ESLint. Ref: #7094 (comment) PR-URL: #8348 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Myles Borins <[email protected]>
1 parent 337d2dd commit d1a50b3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

.eslintrc

+1
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)