From d88fd9a7bafc9bd3f0ea6560fb5d19aa789b51c7 Mon Sep 17 00:00:00 2001 From: Danila Poyarkov Date: Wed, 6 May 2026 02:39:26 +0300 Subject: [PATCH] chore(lint): narrow test mock exceptions - Remove broad test exceptions for no-empty-function and complexity - Scope no-op mock allowances to files that intentionally define fake APIs - Scope complexity allowances to the remaining high-coverage integration-style tests --- oxlint.json | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/oxlint.json b/oxlint.json index a544a4b75..e6c13496c 100644 --- a/oxlint.json +++ b/oxlint.json @@ -165,9 +165,7 @@ "files": ["tests/**/*.ts", "tests/**/*.tsx"], "rules": { "typescript/no-non-null-assertion": "off", - "no-unused-vars": "off", - "no-empty-function": "off", - "complexity": "off" + "no-unused-vars": "off" } }, { @@ -209,6 +207,33 @@ "no-console": "off" } }, + { + "files": [ + "tests/e2e/autosave.spec.ts", + "tests/e2e/stroke-picker/basic.spec.ts", + "tests/engine/app/font-settings.test.ts", + "tests/engine/pen/var-padding.test.ts", + "tests/engine/render/canvas/effects.test.ts", + "tests/engine/render/canvas/text.test.ts", + "tests/engine/tauri/document-io.test.ts", + "tests/engine/text/edit-undo.test.ts", + "tests/engine/tools/ai-adapter.test.ts", + "tests/helpers/undo.ts" + ], + "rules": { + "no-empty-function": "off" + } + }, + { + "files": [ + "tests/e2e/color-picker/demo-card.spec.ts", + "tests/engine/editor/clipboard/derived-text.test.ts", + "tests/engine/editor/effects-and-resize.test.ts" + ], + "rules": { + "complexity": "off" + } + }, { "files": [ "tests/engine/editor/clipboard/import-nodes.test.ts",