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

ignoreRestSiblings on no-unused-var #86

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

robrichard
Copy link
Member

@robrichard robrichard commented Mar 24, 2021

allows patterns like

const { tradeDocument, ...leadInput } = sharedInput;

to create an object with all properties of sharedIput except tradeDocument

and

const [_, itemId, transactionId] = result;

to destructure an array while ignoring early elements

All variables starting with _ will be allowed to be unused

@robrichard robrichard self-assigned this Mar 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants