chore: fix lint and typecheck issues

This commit is contained in:
xingyu4j
2026-03-13 20:57:52 +08:00
parent 771277d5d9
commit a850d426ef
26 changed files with 306 additions and 155 deletions

View File

@@ -57,8 +57,10 @@ describe('loadScript', () => {
appendSpy.mockRestore();
expect(capturedScript).toBeTruthy();
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
capturedScript!.dispatchEvent(new Event('error'));
if (!capturedScript) {
throw new Error('Expected the captured script element to exist');
}
capturedScript.dispatchEvent(new Event('error'));
await expect(promise).rejects.toThrow('Failed to load script: error.js');
});

View File

@@ -1,4 +1,3 @@
// eslint-disable-next-line vue/prefer-import-from-vue
import { isFunction, isObject, isString } from '@vue/shared';
/**