adobe / helix-eslint-config

Eslint config used in helix projects.
Apache License 2.0
2 stars 11 forks source link

fix: ignore underscore throw-away variable #198

Closed ekremney closed 7 months ago

ekremney commented 7 months ago

Description

Underscore variable currently ignored if used as a function argument. I'd like to add an exception to no-unused-vars for the cases where underscore used as a variable name:

const [_, desired] = arr;

Motivation and Context

Stumbled upon a case

How Has This Been Tested?

Screenshots (if appropriate):

Types of changes

Checklist:

github-actions[bot] commented 7 months ago

:tada: This PR is included in version 2.0.5 :tada:

The release is available on:

Your semantic-release bot :package::rocket: