diff options
author | Valentin Popov <info@valentineus.link> | 2020-02-14 19:49:02 +0300 |
---|---|---|
committer | Valentin Popov <info@valentineus.link> | 2020-02-14 19:49:02 +0300 |
commit | 72b09d417636ae0e8d17725eaa20664ab6bb3832 (patch) | |
tree | 07e518e04dd91b28fa42d281d8659aade95d9478 | |
parent | e7da809741e4b2beafa50e4a4e4b7f801e9c206c (diff) | |
download | eslint-config-72b09d417636ae0e8d17725eaa20664ab6bb3832.tar.xz eslint-config-72b09d417636ae0e8d17725eaa20664ab6bb3832.zip |
fix(typescript): type-annotation-spacing
Signed-off-by: Valentin Popov <info@valentineus.link>
-rw-r--r-- | src/rules/typescript/default.json | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/src/rules/typescript/default.json b/src/rules/typescript/default.json index 70058a1..0b2fd46 100644 --- a/src/rules/typescript/default.json +++ b/src/rules/typescript/default.json @@ -140,7 +140,19 @@ } ], "@typescript-eslint/type-annotation-spacing": [ - "error" + "error", + { + "overrides": { + "arrow": { + "after": true, + "before": true + }, + "colon": { + "after": true, + "before": false + } + } + } ], "@typescript-eslint/typedef": [ "error", |