Skip to content

no-redundant-flow: detect redundant nested flow #278

Open
@OliverJAsh

Description

@OliverJAsh
import { flow } from "fp-ts/function";

declare const f: (n: number) => number;

// ❌
const a = flow(f, flow(f, f));

// ✅
const c = flow(f, f, f);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions