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',