Skip to content

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

Enforce complexity limit as error

Danila Poyarkov96784e289596
diff --git a/oxlint.json b/oxlint.json
index ced1d2b79..1d3d37d00 100644
--- a/oxlint.json
+++ b/oxlint.json
@@ -22,7 +22,7 @@
"no-empty-function": "error",
"max-lines": ["warn", { "max": 600 }],
- "complexity": ["warn", { "max": 20 }],
+ "complexity": ["error", { "max": 20 }],
"typescript/no-explicit-any": "warn",
"typescript/no-non-null-assertion": "warn",