Skip to content

Commit d205d0d

Browse files
committed
feat: enable method-signature-style
1 parent 5cabf84 commit d205d0d

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
@@ -115,6 +115,7 @@ export async function typescript(
115115
'ts/ban-types': ['error', { types: { Function: false } }],
116116
'ts/consistent-type-definitions': ['error', 'interface'],
117117
'ts/consistent-type-imports': ['error', { disallowTypeAnnotations: false, prefer: 'type-imports' }],
118+
'ts/method-signature-style': ['error', 'property'], // https://www.totaltypescript.com/method-shorthand-syntax-considered-harmful
118119
'ts/no-dupe-class-members': 'error',
119120
'ts/no-dynamic-delete': 'off',
120121
'ts/no-explicit-any': 'off',

0 commit comments

Comments
 (0)