diff --git a/src/configs/typescript.ts b/src/configs/typescript.ts index 14133ad65a..c4ebce61e2 100644 --- a/src/configs/typescript.ts +++ b/src/configs/typescript.ts @@ -115,6 +115,7 @@ export async function typescript( 'ts/ban-types': ['error', { types: { Function: false } }], 'ts/consistent-type-definitions': ['error', 'interface'], 'ts/consistent-type-imports': ['error', { disallowTypeAnnotations: false, prefer: 'type-imports' }], + 'ts/method-signature-style': ['error', 'property'], // https://www.totaltypescript.com/method-shorthand-syntax-considered-harmful 'ts/no-dupe-class-members': 'error', 'ts/no-dynamic-delete': 'off', 'ts/no-explicit-any': 'off',