Skip to content

ESLint rule new-cap #466

Closed
Closed
@timarney

Description

@timarney

Reporting this as a note of something I ran into.

I'm getting this warning:

7:24 warning A function with a name starting with an uppercase letter should only be used as a constructor new-cap
✖ 1 problem (0 errors, 1 warning)

It turns out this warning is thrown when using Immutable JS

const list = Immutable.List(generateRandomList())

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