From d414db27ea43fd108a43784f04df60daa882e367 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Roig?= Date: Tue, 15 Mar 2022 13:02:32 +0100 Subject: [PATCH] fix(eslint): fix serviceWorker eslint errors --- src/serviceWorker.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/serviceWorker.ts b/src/serviceWorker.ts index 5d95d114..f7328122 100644 --- a/src/serviceWorker.ts +++ b/src/serviceWorker.ts @@ -1,4 +1,5 @@ /* eslint-disable @typescript-eslint/no-use-before-define */ +/* eslint-disable no-console */ // This optional code is used to register a service worker. // register() is not called by default. @@ -65,6 +66,7 @@ function registerValidSW(swUrl: string, config?: Config) { navigator.serviceWorker .register(swUrl) .then((registration) => { + // eslint-disable-next-line no-param-reassign registration.onupdatefound = () => { const installingWorker = registration.installing; if (installingWorker == null) {