From d205d0d368c9151a4a52d3dbb327447a4a33d3c0 Mon Sep 17 00:00:00 2001 From: Anthony Fu Date: Sat, 3 Feb 2024 19:31:58 +0100 Subject: [PATCH] feat: enable `method-signature-style` --- src/configs/typescript.ts | 1 + 1 file changed, 1 insertion(+) 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',