-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add options to check destructuring in no-underscore-dangle (#16006
) * feat: disallow dangling `_` in destructured variable names * doc: describe dangling `_` examples * add: test dangling `_` in destructured variables * refactor: rename to `allowInArrayDestructuring` * fix: change default value * docs: update `allowInArrayDestructuring` examples * feat: disallow dangling `_` in variable names from object destructuring * style: formatting * feat: tests for nested destructured objects and arrays * fix: handle varying nested destructuring * style: identation * fix: remove optional chaining * fix: remove unnecessary check
- Loading branch information
Showing
3 changed files
with
185 additions
and
0 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
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