Skip to content

False positive in deprecation with "of" function #7494

Closed
@egorkel-altexsoft

Description

@egorkel-altexsoft

Describe the bug

When using the of function, ESLint warns about the deprecated usage.

Expected behavior

The deprecation message should not appear when the function is used correctly.

Reproduction code

Just try `of([])` or `of(true)`

Reproduction URL

No response

Version

7.8.1

Environment

No response

Additional context

This definition causes the error
image

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