summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Popov <info@valentineus.link>2020-02-14 01:49:13 +0300
committerValentin Popov <info@valentineus.link>2020-02-14 01:49:13 +0300
commita0d10caa644890ff8c765b8e99e4d3e525f2ea19 (patch)
treed873242bb987d3b3f3c8775c44a9f1e9854bd6a3
parent0d76fb6495e82b1dbed0981246f272badd4dc98b (diff)
downloadeslint-config-a0d10caa644890ff8c765b8e99e4d3e525f2ea19.tar.xz
eslint-config-a0d10caa644890ff8c765b8e99e4d3e525f2ea19.zip
feat(eslint): Rule "comma-style"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r--ROADMAP.md2
-rw-r--r--src/rules/default.json7
2 files changed, 8 insertions, 1 deletions
diff --git a/ROADMAP.md b/ROADMAP.md
index 4b50fcc..8929c31 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -19,7 +19,7 @@
- [X] "class-methods-use-this"
- [X] "comma-dangle"
- [X] "comma-spacing"
-- [ ] "comma-style"
+- [X] "comma-style"
- [ ] "complexity"
- [ ] "computed-property-spacing"
- [ ] "consistent-return"
diff --git a/src/rules/default.json b/src/rules/default.json
index aad6552..b5f90ed 100644
--- a/src/rules/default.json
+++ b/src/rules/default.json
@@ -48,6 +48,13 @@
"before": false
}
],
+ "comma-style": [
+ "error",
+ "last",
+ {
+ "exceptions": {}
+ }
+ ],
"dot-notation": [
"error",
{