aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 15:09:39 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 15:09:39 +0300
commit9cd13f4b4187e9f06e2cece6c94e097feae4d61e (patch)
treea51860a9f890c60c64d32b8ab4e9f53e76c65670
parent257f898e4be76f9d460dde0542bf0ccfd9a9ecca (diff)
downloadeslint-config-9cd13f4b4187e9f06e2cece6c94e097feae4d61e.tar.xz
eslint-config-9cd13f4b4187e9f06e2cece6c94e097feae4d61e.zip
feat(eslint): Rule "brace-style"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/eslint.json7
2 files changed, 8 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index 69802c3..3efef27 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -12,7 +12,7 @@
- [ ] "arrow-spacing"
- [ ] "block-scoped-var"
- [ ] "block-spacing"
-- [ ] "brace-style"
+- [X] "brace-style"
- [ ] "callback-return"
- [ ] "camelcase"
- [ ] "capitalized-comments"
diff --git a/src/rules/eslint.json b/src/rules/eslint.json
index 8363b48..0770287 100644
--- a/src/rules/eslint.json
+++ b/src/rules/eslint.json
@@ -1,4 +1,11 @@
{
+ "brace-style": [
+ "error",
+ "1tbs",
+ {
+ "allowSingleLine": false
+ }
+ ],
"comma-dangle": [
"error",
"always-multiline"