Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
camc314 opened this issue Sep 6, 2024 · 0 comments
Open

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

camc314 opened this issue Sep 6, 2024 · 0 comments
Assignees
Labels
A-linter Area - Linter C-bug Category - Bug

Comments

@camc314
Copy link
Collaborator

camc314 commented Sep 6, 2024

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} />
}
@camc314 camc314 added the C-bug Category - Bug label Sep 6, 2024
@camc314 camc314 self-assigned this Sep 6, 2024
@DonIsaac DonIsaac added the A-linter Area - Linter label Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-linter Area - Linter C-bug Category - Bug
Projects
None yet
Development

No branches or pull requests

2 participants