Skip to content

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

Add max-lines, complexity, and more lint rules

Danila Poyarkov4abc73eb471b
diff --git a/oxlint.json b/oxlint.json
index a52d3258f..ced1d2b79 100644
--- a/oxlint.json
+++ b/oxlint.json
@@ -21,6 +21,8 @@
}],
"no-empty-function": "error",
+ "max-lines": ["warn", { "max": 600 }],
+ "complexity": ["warn", { "max": 20 }],
"typescript/no-explicit-any": "warn",
"typescript/no-non-null-assertion": "warn",
@@ -91,6 +93,16 @@
"typescript/no-explicit-any": "off",
"typescript/no-non-null-assertion": "off"
}
+ },
+ {
+ "files": [
+ "src/stores/editor.ts",
+ "src/composables/use-canvas-input.ts",
+ "src/demo.ts"
+ ],
+ "rules": {
+ "max-lines": "off"
+ }
}
],
"ignorePatterns": ["node_modules", "dist", "desktop", "*.config.*"]