From a0d10caa644890ff8c765b8e99e4d3e525f2ea19 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 14 Feb 2020 02:49:13 +0400 Subject: feat(eslint): Rule "comma-style" Signed-off-by: Valentin Popov --- ROADMAP.md | 2 +- src/rules/default.json | 7 +++++++ 2 files changed, 8 insertions(+), 1 deletion(-) 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", { -- cgit v1.2.3