aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-13 14:19:26 +0300
committerValentin Popov <info@valentineus.link>2020-02-13 14:19:26 +0300
commit28a0661434c22f50dc8308742ab317b047deabe3 (patch)
treeeb556d167031facb08c737668ced7271b10c1226
parenta9bbe9301d01b99e33d490fbd46393c35685beda (diff)
downloadeslint-config-28a0661434c22f50dc8308742ab317b047deabe3.tar.xz
eslint-config-28a0661434c22f50dc8308742ab317b047deabe3.zip
feat(eslint): Rule "comma-dangle"
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 c6f9b22..4a13009 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -17,7 +17,7 @@
- [ ] "camelcase"
- [ ] "capitalized-comments"
- [ ] "class-methods-use-this"
-- [ ] "comma-dangle"
+- [X] "comma-dangle"
- [ ] "comma-spacing"
- [ ] "comma-style"
- [ ] "complexity"
diff --git a/src/rules/eslint.json b/src/rules/eslint.json
index 0498880..b15bed4 100644
--- a/src/rules/eslint.json
+++ b/src/rules/eslint.json
@@ -1,4 +1,8 @@
{
+ "comma-dangle": [
+ "error",
+ "always-multiline"
+ ],
"eol-last": [
"error",
"always"