aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-14 01:52:21 +0300
committerValentin Popov <info@valentineus.link>2020-02-14 01:52:21 +0300
commit658ca3ebba139f1901df3299aa0d6d7102672932 (patch)
tree986fe45a9a1c87fd1e0465a182f46346ad28984d
parenta0d10caa644890ff8c765b8e99e4d3e525f2ea19 (diff)
downloadeslint-config-658ca3ebba139f1901df3299aa0d6d7102672932.tar.xz
eslint-config-658ca3ebba139f1901df3299aa0d6d7102672932.zip
feat(eslint): Rule "curly"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/default.json4
2 files changed, 5 insertions, 1 deletions
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",
{