Skip to content

False positive for no-unused-vars #4888

@florianwittmann

Description

@florianwittmann

In the following case text in the first line is found by no-unused-vars, but not found by the original eslint rule:

   const { text, ...dbEntry } = entry;
    return doSomething({
      ...dbEntry,
      someOtherProp
    });

Here we want to get entry without text and this seems to be one legit way to do this, hence text is not unused. This was tested with version 0.7.1.

Metadata

Metadata

Assignees

Labels

A-linterArea - LinterC-bugCategory - Bug

Type

No type

Priority

None yet

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions