Skip to content

Commit

Permalink
fix: allow Function type for ts/ban-types
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Sep 28, 2023
1 parent 5f554fd commit 6a4cfec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/configs/typescript.ts
Expand Up @@ -92,6 +92,7 @@ export function typescript(
'no-use-before-define': OFF,
'no-useless-constructor': OFF,
'ts/ban-ts-comment': ['error', { 'ts-ignore': 'allow-with-description' }],
'ts/ban-types': ['error', { types: { Function: false } }],
'ts/consistent-type-definitions': ['error', 'interface'],
'ts/consistent-type-imports': ['error', { disallowTypeAnnotations: false, prefer: 'type-imports' }],
'ts/no-dupe-class-members': 'error',
Expand Down

0 comments on commit 6a4cfec

Please sign in to comment.