Update coding standard to v3.0.0

This commit is contained in:
Alejandro Celaya
2024-06-20 14:56:32 +02:00
parent e4fcfdbdcd
commit f530fb4ceb
8 changed files with 834 additions and 99 deletions

View File

@@ -9,7 +9,7 @@
import { clientsClaim } from 'workbox-core';
import { ExpirationPlugin } from 'workbox-expiration';
import { precacheAndRoute, createHandlerBoundToURL } from 'workbox-precaching';
import { createHandlerBoundToURL, precacheAndRoute } from 'workbox-precaching';
import { registerRoute } from 'workbox-routing';
import { StaleWhileRevalidate } from 'workbox-strategies';
import pack from '../package.json';
@@ -50,7 +50,7 @@ registerRoute(
// Return true to signal that we want to use the handler.
return true;
},
createHandlerBoundToURL(`${pack.homepage}/index.html`)
createHandlerBoundToURL(`${pack.homepage}/index.html`),
);
// An example runtime caching route for requests that aren't handled by the
@@ -66,7 +66,7 @@ registerRoute(
// least-recently used images are removed.
new ExpirationPlugin({ maxEntries: 50 }),
],
})
}),
);
// This allows the web app to trigger skipWaiting via