Skip to content

Commit 6a4cfec

Browse files
committed
fix: allow Function type for ts/ban-types
1 parent 5f554fd commit 6a4cfec

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/configs/typescript.ts

+1
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@ export function typescript(
9292
'no-use-before-define': OFF,
9393
'no-useless-constructor': OFF,
9494
'ts/ban-ts-comment': ['error', { 'ts-ignore': 'allow-with-description' }],
95+
'ts/ban-types': ['error', { types: { Function: false } }],
9596
'ts/consistent-type-definitions': ['error', 'interface'],
9697
'ts/consistent-type-imports': ['error', { disallowTypeAnnotations: false, prefer: 'type-imports' }],
9798
'ts/no-dupe-class-members': 'error',

0 commit comments

Comments
 (0)