Skip to content

AI-native design editor. Open-source Figma alternative.

chore(lint): narrow test mock exceptions

Danila Poyarkovd88fd9a7bafc
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",