From ca618f2bf2a3dad8131c8453f2d2ea7a5cb917e0 Mon Sep 17 00:00:00 2001 From: David Baker Date: Mon, 23 Jan 2017 14:18:09 +0000 Subject: [PATCH] Allow single line brace-style As we sometimes use (x) => {foo = x;}, especially for react components, but probably no reason not to allow it generally. --- .eslintrc.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.eslintrc.js b/.eslintrc.js index 5fb5b8476..e6eb64af7 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -56,7 +56,7 @@ module.exports = { // we set these to warnings, and assert that the number // of warnings doesn't exceed a given threshold "no-var": ["warn"], - "brace-style": ["warn"], + "brace-style": ["warn", "1tbs", {"allowSingleLine": true}], "prefer-rest-params": ["warn"], "prefer-spread": ["warn"], "one-var": ["warn"],