chore(lint): narrow test mock exceptions
- Remove broad test exceptions for no-empty-function and complexity - Scope no-op mock allowances to files that intentionally define fake APIs - Scope complexity allowances to the remaining high-coverage integration-style tests
This commit is contained in:
parent
0af8cd271e
commit
d88fd9a7ba
31
oxlint.json
31
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",
|
||||
|
|
|
|||
Loading…
Reference in a new issue