We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e56bbbe commit 3a62b2cCopy full SHA for 3a62b2c
src/configs/typescript.ts
@@ -137,7 +137,11 @@ export async function typescript(
137
'ts/method-signature-style': ['error', 'property'], // https://www.totaltypescript.com/method-shorthand-syntax-considered-harmful
138
'ts/no-dupe-class-members': 'error',
139
'ts/no-dynamic-delete': 'off',
140
- 'ts/no-empty-object-type': ['error', { allowInterfaces: 'always' }],
+ 'ts/no-empty-object-type': [
141
+ 'error',
142
+ { allowInterfaces: 'with-single-extends', // interface Derived extends Base {}
143
+ allowObjectTypes: 'never', allowWithName: 'Props$' },
144
+ ],
145
'ts/no-explicit-any': 'off',
146
'ts/no-extraneous-class': 'off',
147
'ts/no-import-type-side-effects': 'error',
0 commit comments