chore: fix oxlint errors (#13434)

#### PR Dependency Tree


* **PR #13434** 👈

This tree was auto-generated by
[Charcoal](https://github.com/danerwilliams/charcoal)

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

* **Style**
* Improved clarity of TypeScript error suppression comments across
various test files and helper scripts. Comments now specify the reasons
for ignoring specific type errors, enhancing code readability for
developers.
* **Chores**
* Updated inline comments without affecting application functionality or
user experience. No changes to features, logic, or test outcomes.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
fengmk2
2025-08-07 10:53:25 +08:00
committed by GitHub
parent 21c758b6d6
commit 542c8e2c1d
9 changed files with 15 additions and 14 deletions

View File

@@ -77,7 +77,7 @@ export const test = baseTest.extend<{
if (enableCoverage) {
await context.addInitScript(() =>
window.addEventListener('beforeunload', () =>
// @ts-expect-error
// @ts-expect-error window.__coverage__ is not typed
window.collectIstanbulCoverage(JSON.stringify(window.__coverage__))
)
);
@@ -103,7 +103,7 @@ export const test = baseTest.extend<{
if (enableCoverage) {
for (const page of context.pages()) {
await page.evaluate(() =>
// @ts-expect-error
// @ts-expect-error window.__coverage__ is not typed
window.collectIstanbulCoverage(JSON.stringify(window.__coverage__))
);
}