diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-13 21:59:28 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-13 21:59:28 +0300 |
commit | d1751228f2f845d59255ae17a78573f91fa6cd6e (patch) | |
tree | 96ee5bf4218753fbb986244994570736b3376625 | |
parent | d7fea402cf940e27be3f01ceeef1c8135ac43fb7 (diff) | |
download | eslint-config-d1751228f2f845d59255ae17a78573f91fa6cd6e.tar.xz eslint-config-d1751228f2f845d59255ae17a78573f91fa6cd6e.zip |
feat(eslint): Rule "comma-spacing"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r-- | ROADMAP.md | 2 | ||||
-rw-r--r-- | src/rules/default.json | 7 |
2 files changed, 8 insertions, 1 deletions
@@ -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" |