From 3a12b56865e72ab69ea0be7292394faa9a7126bc Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Thu, 13 Feb 2020 15:57:28 +0400 Subject: feat(eslint): Rule "key-spacing" Signed-off-by: Valentin Popov --- ROADMAP.md | 2 +- src/rules/eslint.json | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/ROADMAP.md b/ROADMAP.md index 3fdd889..9a81278 100644 --- a/ROADMAP.md +++ b/ROADMAP.md @@ -54,7 +54,7 @@ - [X] "indent-legacy" - [ ] "init-declarations" - [ ] "jsx-quotes" -- [ ] "key-spacing" +- [X] "key-spacing" - [ ] "keyword-spacing" - [ ] "line-comment-position" - [ ] "linebreak-style" diff --git a/src/rules/eslint.json b/src/rules/eslint.json index 48490f1..96823ca 100644 --- a/src/rules/eslint.json +++ b/src/rules/eslint.json @@ -37,6 +37,14 @@ "indent-legacy": [ "off" ], + "key-spacing": [ + "error", + { + "afterColon": true, + "beforeColon": false, + "mode": "strict" + } + ], "lines-around-directive": [ "off" ], -- cgit v1.2.3