From d1751228f2f845d59255ae17a78573f91fa6cd6e Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 13 Feb 2020 22:59:28 +0400 Subject: feat(eslint): Rule "comma-spacing" 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 85ca8ef..3688d7e 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -18,7 +18,7 @@ - [ ] "capitalized-comments" - [ ] "class-methods-use-this" - [X] "comma-dangle" -- [ ] "comma-spacing" +- [X] "comma-spacing" - [ ] "comma-style" - [ ] "complexity" - [ ] "computed-property-spacing" diff --git a/src/rules/default.json b/src/rules/default.json index ce5bbe1..52611ee 100644 --- a/src/rules/default.json +++ b/src/rules/default.json @@ -21,6 +21,13 @@ "error", "always-multiline" ], + "comma-spacing": [ + "error", + { + "after": true, + "before": false + } + ], "eol-last": [ "error", "always" -- cgit v1.2.3