Skip to content

prefer-tacit: Not reporting map(x => Boolean(x)) #801

Closed
@abrahamguo

Description

@abrahamguo

Bug Report

prefer-tacit does not report:

/* eslint functional/prefer-tacit: "error" */
const foo = [1, 2, 3].map(x => Boolean(x));

Expected behavior

Suggest changing to map(Boolean)

Actual behavior

No error was reported.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Status: ReleasedIt's now live.Type: BugInconsistencies or issues which will cause a problem for users or implementors.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions