Add max-lines, complexity, and more lint rules
This commit is contained in:
parent
2f06c65c7c
commit
4abc73eb47
12
oxlint.json
12
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.*"]
|
||||
|
|
|
|||
Loading…
Reference in a new issue