aacanakin/resource-store-redux

View on GitHub

Showing 2 of 18 total issues

Function resourceReducer has 47 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function resourceReducer(
  resourceKeys: string[],
): Reducer<ResourceStoreState> {
  const initialResourceState = initialResourceStoreState(resourceKeys);

Severity: Minor
Found in packages/resource-store-redux/src/reducer.ts - About 1 hr to fix

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

    function registerValidSW(swUrl: string, config?: Config) {
      navigator.serviceWorker
        .register(swUrl)
        .then(registration => {
          registration.onupdatefound = () => {
    Severity: Minor
    Found in packages/resource-store-redux-playground/src/serviceWorker.ts - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language