Skip to content

enhancement(linter) expand only-used-in-recursion to support jsx #5530

@camc314

Description

@camc314

currently, only-used-in-recursion only supports cases such as:

function foo(arg0) {
    foo(arg0)
}

it could be expanded to support cases such as:

function Listitem({ depth }) {
    return <Listitem depth={depth + 1} />
}

cc @no-yan

Metadata

Metadata

Assignees

Labels

A-linterArea - LinterC-bugCategory - Buggood first issueExperience Level - Good for newcomers

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions