diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-13 14:57:28 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-13 14:57:28 +0300 |
commit | 3a12b56865e72ab69ea0be7292394faa9a7126bc (patch) | |
tree | 9338ed4638750e39dfc5939467234b1d94d80200 | |
parent | b2e832786d4ad2a3147aa3e9a3ba01846b75cca4 (diff) | |
download | eslint-config-3a12b56865e72ab69ea0be7292394faa9a7126bc.tar.xz eslint-config-3a12b56865e72ab69ea0be7292394faa9a7126bc.zip |
feat(eslint): Rule "key-spacing"
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r-- | ROADMAP.md | 2 | ||||
-rw-r--r-- | src/rules/eslint.json | 8 |
2 files changed, 9 insertions, 1 deletions
@@ -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" ], |