Skip to content
This repository has been archived by the owner on Nov 18, 2021. It is now read-only.

Commit

Permalink
[typescript-eslint] Enable type-annotation-spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
tetsuharuohzeki committed Jul 18, 2019
1 parent 8283404 commit 82cee47
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion config/eslintrc_typescript.js
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit 82cee47

Please sign in to comment.