Goldziher/vuex-factories

View on GitHub

Showing 2 of 2 total issues

Function actionFactory has 36 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function actionFactory<S = any, R = any>(
    actions: Dictionary<ActionOption[]>,
): Dictionary<ActionHandler<S, R>> {
    return reduceToDict(
        Object.entries(actions).map(([name, options]) => [
Severity: Minor
Found in src/index.ts - About 1 hr to fix

    Function mutationFactory has 27 lines of code (exceeds 25 allowed). Consider refactoring.
    Open

    export function mutationFactory<S = any>(mutations: {
        [k: string]: { key: S extends object ? keyof S : string; value?: any }[]
    }): Dictionary<Mutation<S>> {
        return reduceToDict(
            Object.entries(mutations).map(([name, options]) => [
    Severity: Minor
    Found in src/index.ts - About 1 hr to fix
      Severity
      Category
      Status
      Source
      Language