Add max-lines, complexity, and more lint rules

This commit is contained in:
Danila Poyarkov 2026-03-09 10:11:11 +03:00
parent 2f06c65c7c
commit 4abc73eb47

View file

@ -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.*"]