src/serviceWorker.js
Function registerValidSW
has 31 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function registerValidSW(swUrl, config) {
navigator.serviceWorker
.register(swUrl)
.then((registration) => {
registration.onupdatefound = () => {
Parsing error: The keyword 'const' is reserved Open
Open
const isLocalhost = Boolean(
- Read upRead up
- Exclude checks
For more information visit Source: http://eslint.org/docs/rules/