john-d-pelingo/react-twitch-streamers

View on GitHub
src/serviceWorker.js

Summary

Maintainability
A
1 hr
Test Coverage

Function registerValidSW has 31 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function registerValidSW(swUrl, config) {
  navigator.serviceWorker
    .register(swUrl)
    .then((registration) => {
      registration.onupdatefound = () => {
Severity: Minor
Found in src/serviceWorker.js - About 1 hr to fix

    Parsing error: The keyword 'const' is reserved
    Open

    const isLocalhost = Boolean(
    Severity: Minor
    Found in src/serviceWorker.js by eslint

    For more information visit Source: http://eslint.org/docs/rules/

    There are no issues that match your filters.

    Category
    Status