Browse Source

tools: enforce JS brace style with linting

Enable `brace-style` in ESLint.

Ref: https://github.com/nodejs/node/pull/7094#discussion_r70149215
PR-URL: https://github.com/nodejs/node/pull/7630
Reviewed-By: Brian White <mscdex@mscdex.net>
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl>
Reviewed-By: Roman Reiss <me@silverwind.io>
Reviewed-By: Trevor Norris <trev.norris@gmail.com>
Reviewed-By: Rod Vagg <rod@vagg.org>
v7.x
Rich Trott 8 years ago
parent
commit
863952ebad
  1. 1
      .eslintrc

1
.eslintrc

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

Loading…
Cancel
Save