chore: prettier all ts code

This commit is contained in:
陈嘉涵
2020-01-19 15:27:28 +08:00
parent 04c49b645a
commit 207e80f396
19 changed files with 124 additions and 68 deletions
+2 -6
View File
@@ -15,7 +15,7 @@ if (!isServer) {
},
});
window.addEventListener('test-passive', null as any, opts);
// eslint-disable-next-line no-empty
// eslint-disable-next-line no-empty
} catch (e) {}
}
@@ -34,11 +34,7 @@ export function on(
}
}
export function off(
target: EventTarget,
event: string,
handler: EventHandler
) {
export function off(target: EventTarget, event: string, handler: EventHandler) {
if (!isServer) {
target.removeEventListener(event, handler);
}