Skip to content

Commit 2a2370d

Browse files
authored
feat(eslint-plugin): allow single extends for interfaces (#134)
feat: allow single extends for interfaces
1 parent 05da0aa commit 2a2370d

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
type AppThemes = { light: {} };
2+
3+
declare module "react-native-unistyles" {
4+
export interface UnistylesThemes extends AppThemes {}
5+
}

packages/eslint-plugin/lib/configs/recommended.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,10 @@ export const recommendedConfig = tseslint.config(
105105
"@typescript-eslint/return-await": "error",
106106
"@typescript-eslint/no-floating-promises": "error",
107107
"@typescript-eslint/no-unnecessary-condition": "error",
108+
"@typescript-eslint/no-empty-object-type": [
109+
"error",
110+
{ allowInterfaces: "with-single-extends" },
111+
],
108112
},
109113
},
110114
);

0 commit comments

Comments
 (0)