diff --git a/src/configs/typescript.ts b/src/configs/typescript.ts index 04ae6232d2..4405e9e073 100644 --- a/src/configs/typescript.ts +++ b/src/configs/typescript.ts @@ -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',