Skip to content

Commit a82573d

Browse files
Trottevanlucas
authored andcommitted
tools: enforce JS brace style with linting
Enable `brace-style` in ESLint. Ref: #7094 (comment) PR-URL: #7630 Reviewed-By: Brian White <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Ben Noordhuis <[email protected]> Reviewed-By: Roman Reiss <[email protected]> Reviewed-By: Trevor Norris <[email protected]> Reviewed-By: Rod Vagg <[email protected]>
1 parent fc0ed2e commit a82573d

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
@@ -55,6 +55,7 @@ rules:
5555

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

0 commit comments

Comments
 (0)