Skip to content

Commit

Permalink
tools: enforce JS brace style with linting
Browse files Browse the repository at this point in the history
Enable `brace-style` in ESLint.

Ref: nodejs#7094 (comment)
  • Loading branch information
Trott committed Aug 31, 2016
1 parent 5cbc604 commit d1e2db2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ rules:

# Stylistic Issues
# http://eslint.org/docs/rules/#stylistic-issues
brace-style: [2, "1tbs", {allowSingleLine: true}]
comma-spacing: 2
eol-last: 2
indent: [2, 2, {SwitchCase: 1}]
Expand Down

0 comments on commit d1e2db2

Please sign in to comment.