Skip to content

Commit 692e768

Browse files
committed
fix: relax ts/no-empty-object-type rule
1 parent 4de8d8f commit 692e768

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/configs/typescript.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ export async function typescript(
127127
'ts/method-signature-style': ['error', 'property'], // https://www.totaltypescript.com/method-shorthand-syntax-considered-harmful
128128
'ts/no-dupe-class-members': 'error',
129129
'ts/no-dynamic-delete': 'off',
130-
'ts/no-empty-object-type': 'error',
130+
'ts/no-empty-object-type': ['error', { allowInterfaces: 'always' }],
131131
'ts/no-explicit-any': 'off',
132132
'ts/no-extraneous-class': 'off',
133133
'ts/no-import-type-side-effects': 'error',

src/types.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,6 @@ export interface OptionsStylistic {
162162
stylistic?: boolean | StylisticConfig
163163
}
164164

165-
// eslint-disable-next-line ts/no-empty-object-type
166165
export interface StylisticConfig
167166
extends Pick<StylisticCustomizeOptions, 'indent' | 'quotes' | 'jsx' | 'semi'> {
168167
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy