From d1a50b3ed22a427b949eedeee62b899ac27b9799 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 ffb7682178..8003652a96 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}]