From 3be89319b632e2ed147fadd4e5705385f3d0785f 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..7240b2cd 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 for the 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',