Skip to content

Commit 1b4636d

Browse files
committedFeb 19, 2024
feat: enable method-signature-style
ref: antfu/eslint-config@d205d0d
1 parent 5c9960a commit 1b4636d

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
@@ -17,6 +17,7 @@ export const typescriptRules: Rules = {
1717
'error',
1818
{ disallowTypeAnnotations: false, fixStyle: 'inline-type-imports' },
1919
],
20+
'@typescript-eslint/method-signature-style': ['error', 'property'], // https://www.totaltypescript.com/method-shorthand-syntax-considered-harmful
2021
'@typescript-eslint/no-explicit-any': 'off',
2122
'@typescript-eslint/no-import-type-side-effects': 'error',
2223
'@typescript-eslint/no-non-null-assertion': 'off',

0 commit comments

Comments
 (0)
Please sign in to comment.