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

[typescript-eslint] Enable type-annotation-spacing #159

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 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',
Expand Down