From 9bddd79eaa91e9e0560c8f8535094e10c9dc4faa Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Fri, 8 Jul 2016 17:12:24 -0700 Subject: [PATCH] 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/8348 Reviewed-By: James M Snell Reviewed-By: Myles Borins --- .eslintrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintrc b/.eslintrc index ffb768217805b9..8003652a962c7f 100644 --- a/.eslintrc +++ b/.eslintrc @@ -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}]