Skip to content

Commit 8f575f1

Browse files
chore(lint): enforce typescript/no-extraneous-class
1 parent 35dae5c commit 8f575f1

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

‎apps/desktop/src/preview/Manager.test.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,7 @@ const {
147147

148148
vi.mock("electron", () => ({
149149
BrowserWindow: browserWindowConstructor,
150+
// oxlint-disable-next-line typescript/no-extraneous-class -- This constructor-only mock implements the browser ClipboardItem API.
150151
ClipboardItem: class {
151152
constructor(data: Record<string, unknown>) {
152153
clipboardItemConstructor(data);

‎vite.config.ts‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ export default defineConfig({
216216
perf: "warn",
217217
},
218218
rules: {
219+
"typescript/no-extraneous-class": "error",
219220
"eslint/no-empty-pattern": "error",
220221
"eslint/no-new": "error",
221222
"unicorn/no-useless-spread": "error",

0 commit comments

Comments
 (0)