Skip to content

Commit 79f6932

Browse files
committed
feat(ts): enable method-signature-style
1 parent 270c7af commit 79f6932

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

src/configs/typescript.ts

+1
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ export async function typescript(
130130
'error',
131131
{ disallowTypeAnnotations: false, prefer: 'type-imports' },
132132
],
133+
'ts/method-signature-style': ['error', 'property'], // https://www.totaltypescript.com/method-shorthand-syntax-considered-harmful
133134
'ts/no-dupe-class-members': 'error',
134135
'ts/no-dynamic-delete': 'off',
135136
'ts/no-explicit-any': 'off',

src/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ import type {
3838
} from './types'
3939

4040
const flatConfigProps: (keyof FlatConfigItem)[] = [
41+
'name',
4142
'files',
4243
'ignores',
4344
'languageOptions',

0 commit comments

Comments
 (0)