Skip to content

Commit 14d6c80

Browse files
authored
perf!: add the @typescript-eslint/no-empty-object-type rule
1 parent f375837 commit 14d6c80

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

eslint.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ export default [
3434
"@typescript-eslint/no-confusing-void-expression": "error",
3535
"@typescript-eslint/no-duplicate-enum-values": "error",
3636
"@typescript-eslint/no-dynamic-delete": "error",
37+
"@typescript-eslint/no-empty-object-type": [
38+
"error",
39+
{ allowInterfaces: "with-single-extends" },
40+
],
3741
"@typescript-eslint/no-extraneous-class": "error",
3842
"@typescript-eslint/no-invalid-void-type": "error",
3943
"@typescript-eslint/no-meaningless-void-operator": "error",

index.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,6 +247,10 @@ declare const _default: (
247247
"@typescript-eslint/no-confusing-void-expression": string;
248248
"@typescript-eslint/no-duplicate-enum-values": string;
249249
"@typescript-eslint/no-dynamic-delete": string;
250+
"@typescript-eslint/no-empty-object-type": [
251+
string,
252+
{ allowInterfaces: "never" | "with-single-extends" | "always" },
253+
];
250254
"@typescript-eslint/no-extraneous-class": string;
251255
"@typescript-eslint/no-invalid-void-type": string;
252256
"@typescript-eslint/no-meaningless-void-operator": string;

0 commit comments

Comments
 (0)