Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
…10368) <!-- ESLint adheres to the [JS Foundation Code of Conduct](https://js.foundation/community/code-of-conduct). --> close #9108 **What is the purpose of this pull request? (put an "X" next to item)** [ ] Documentation update [x] Bug fix ([template](https://raw.githubusercontent.com/eslint/eslint/master/templates/bug-report.md)) [ ] New rule ([template](https://raw.githubusercontent.com/eslint/eslint/master/templates/rule-proposal.md)) [ ] Changes an existing rule ([template](https://raw.githubusercontent.com/eslint/eslint/master/templates/rule-change-proposal.md)) [ ] Add autofixing to a rule [ ] Add a CLI option [ ] Add something to the core [ ] Other, please explain: <!-- If the item you've checked above has a template, please paste the template questions below and answer them. (If this pull request is addressing an issue, you can just paste a link to the issue here instead.) --> #9108 <!-- Please ensure your pull request is ready: - Read the pull request guide (https://eslint.org/docs/developer-guide/contributing/pull-requests) - Include tests for this change - Update documentation for this change (if appropriate) --> <!-- The following is required for all pull requests: --> **What changes did you make? (Give an overview)** Allow: ```js (function ({ a }) { let b; ({ a, b } = obj); })(); ``` or ```js let a; { let b; ({ a, b } = obj); } ```
- Loading branch information
Showing
2 changed files
with
93 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters