From 82cee472a0792d356cff0f98454f0f773692c1d2 Mon Sep 17 00:00:00 2001 From: Tetsuharu OHZEKI Date: Fri, 19 Jul 2019 03:00:14 +0900 Subject: [PATCH] [typescript-eslint] Enable type-annotation-spacing --- config/eslintrc_typescript.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/config/eslintrc_typescript.js b/config/eslintrc_typescript.js index 54a20148..fd14e435 100644 --- a/config/eslintrc_typescript.js +++ b/config/eslintrc_typescript.js @@ -307,7 +307,17 @@ module.exports = { 'lib': 'never', }], - // TODO: @typescript-eslint/type-annotation-spacing + // This rule might be worse to lint runtime performance. + '@typescript-eslint/type-annotation-spacing': ['warn', { + 'before': false, + 'after': true, + 'overrides': { + 'arrow': { + 'before': true, + 'after': true, + }, + }, + }], // In some case, function definition by overloading improves IntelliSense ergonomics. '@typescript-eslint/unified-signature': 'off',