Skip to content

Commit

Permalink
feat: enable method-signature-style
Browse files Browse the repository at this point in the history
  • Loading branch information
antfu committed Feb 3, 2024
1 parent 5cabf84 commit d205d0d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/configs/typescript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand Down

0 comments on commit d205d0d

Please sign in to comment.