From 72b09d417636ae0e8d17725eaa20664ab6bb3832 Mon Sep 17 00:00:00 2001 From: Valentin Popov Date: Fri, 14 Feb 2020 20:49:02 +0400 Subject: fix(typescript): type-annotation-spacing Signed-off-by: Valentin Popov --- src/rules/typescript/default.json | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) (limited to 'src/rules') 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", -- cgit v1.2.3