From 1f6870128b1b1b699ddddc533f6e2527d641960b Mon Sep 17 00:00:00 2001 From: Adrian Calinescu Date: Mon, 18 May 2020 22:27:43 +0300 Subject: [PATCH] Add newline before return and mandate curly braces (#98) --- .eslintrc.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.eslintrc.json b/.eslintrc.json index 931bc31..dcb7e1f 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -27,6 +27,8 @@ "padding-line-between-statements": [ "error", { "blankLine": "always", "prev": "*", "next": "return" } - ] + ], + "brace-style": [2, "stroustrup", { "allowSingleLine": false }], + "curly": ["error", "all"] } } \ No newline at end of file