From 658ca3ebba139f1901df3299aa0d6d7102672932 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 14 Feb 2020 02:52:21 +0400 Subject: feat(eslint): Rule "curly" Signed-off-by: Valentin Popov --- ROADMAP.md | 2 +- src/rules/default.json | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ROADMAP.md b/ROADMAP.md index 8929c31..98f65b1 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -25,7 +25,7 @@ - [ ] "consistent-return" - [ ] "consistent-this" - [ ] "constructor-super" -- [ ] "curly" +- [X] "curly" - [ ] "default-case" - [ ] "default-case-last" - [ ] "default-param-last" diff --git a/src/rules/default.json b/src/rules/default.json index b5f90ed..f99eadf 100644 --- a/src/rules/default.json +++ b/src/rules/default.json @@ -55,6 +55,10 @@ "exceptions": {} } ], + "curly": [ + "error", + "all" + ], "dot-notation": [ "error", { -- cgit v1.2.3