From a82573d4807898dddc523ee7d32bcf97080222ec 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 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-By: Michaƫl Zasso Reviewed-By: Ben Noordhuis Reviewed-By: Roman Reiss Reviewed-By: Trevor Norris Reviewed-By: Rod Vagg --- .eslintrc | 1 + 1 file changed, 1 insertion(+) diff --git a/.eslintrc b/.eslintrc index f9b0ef3b015f77..dbc12427ca7ed7 100644 --- a/.eslintrc +++ b/.eslintrc @@ -55,6 +55,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}]