aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 15:38:31 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 15:38:31 +0300
commit799b6c9f21d1eab63d2ded3f7601695ce63e82ad (patch)
treede8beb567400283da1d466892dbd93374cb8b28a
parent7bc55712a4d2b781976cc381030ca90ce8e2030c (diff)
downloadeslint-config-799b6c9f21d1eab63d2ded3f7601695ce63e82ad.tar.xz
eslint-config-799b6c9f21d1eab63d2ded3f7601695ce63e82ad.zip
feat(eslint): Rule "space-before-blocks"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/eslint.json4
2 files changed, 5 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index ebc7b4f..01af735 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -260,7 +260,7 @@
- [X] "sort-imports"
- [X] "sort-keys"
- [X] "sort-vars"
-- [ ] "space-before-blocks"
+- [X] "space-before-blocks"
- [X] "space-before-function-paren"
- [ ] "space-in-parens"
- [ ] "space-infix-ops"
diff --git a/src/rules/eslint.json b/src/rules/eslint.json
index 04fda73..7793435 100644
--- a/src/rules/eslint.json
+++ b/src/rules/eslint.json
@@ -212,6 +212,10 @@
"ignoreCase": false
}
],
+ "space-before-blocks": [
+ "error",
+ "always"
+ ],
"space-before-function-paren": [
"error",
{