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

feat(eslint-plugin): [no-unused-vars] add destructuredArrayIgnorePattern options #4748

Conversation

ALOHACREPES345
Copy link
Contributor

PR Checklist

Overview

implmented destructuredArrayIgnorePattern options just like base rule added. (eslint/eslint#15649)

Also applied this fix(eslint/eslint@c4d8b0d).
This fix is needed for the new test case using destructuredArrayIgnorePattern and ignoreRestSiblings options. This test case is from base rule.
It causes error without this fix.

@nx-cloud
Copy link

nx-cloud bot commented Mar 27, 2022

☁️ Nx Cloud Report

CI is running/has finished running commands for commit d4374e8. As they complete they will appear below. Click to see the status, the terminal output, and the build insights.

📂 See all runs for this branch


✅ Successfully ran 43 targets

Sent with 💌 from NxCloud.

@typescript-eslint
Copy link
Contributor

Thanks for the PR, @ALOHACREPES345!

typescript-eslint is a 100% community driven project, and we are incredibly grateful that you are contributing to that community.

The core maintainers work on this in their personal time, so please understand that it may not be possible for them to review your work immediately.

Thanks again!


🙏 Please, if you or your company is finding typescript-eslint valuable, help us sustain the project by sponsoring it transparently on https://opencollective.com/typescript-eslint. As a thank you, your profile/company logo will be added to our main README which receives thousands of unique visitors per day.

@netlify
Copy link

netlify bot commented Mar 27, 2022

Deploy Preview for typescript-eslint ready!

Name Link
🔨 Latest commit d4374e8
🔍 Latest deploy log https://app.netlify.com/sites/typescript-eslint/deploys/6240d8925d0a16000920c0e2
😎 Deploy Preview https://deploy-preview-4748--typescript-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@codecov
Copy link

codecov bot commented Mar 27, 2022

Codecov Report

Merging #4748 (d4374e8) into main (9707daa) will increase coverage by 2.26%.
The diff coverage is 83.33%.

@@            Coverage Diff             @@
##             main    #4748      +/-   ##
==========================================
+ Coverage   92.06%   94.33%   +2.26%     
==========================================
  Files         355      151     -204     
  Lines       12097     8167    -3930     
  Branches     3455     2653     -802     
==========================================
- Hits        11137     7704    -3433     
+ Misses        630      258     -372     
+ Partials      330      205     -125     
Flag Coverage Δ
unittest 94.33% <83.33%> (+2.26%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
packages/eslint-plugin/src/rules/no-unused-vars.ts 95.93% <83.33%> (-2.13%) ⬇️
packages/eslint-plugin/src/util/objectIterators.ts 66.66% <0.00%> (-2.57%) ⬇️
...es/eslint-plugin/src/rules/no-loss-of-precision.ts 83.33% <0.00%> (-1.29%) ⬇️
packages/eslint-plugin/src/util/astUtils.ts 83.33% <0.00%> (-0.88%) ⬇️
...lugin/src/rules/no-confusing-non-null-assertion.ts 82.60% <0.00%> (-0.73%) ⬇️
...int-plugin/src/rules/require-array-sort-compare.ts 88.23% <0.00%> (-0.66%) ⬇️
...eslint-plugin/src/rules/type-annotation-spacing.ts 81.94% <0.00%> (-0.25%) ⬇️
packages/eslint-plugin/src/rules/no-shadow.ts 76.33% <0.00%> (-0.18%) ⬇️
packages/eslint-plugin/src/rules/indent.ts 92.85% <0.00%> (-0.17%) ⬇️
packages/eslint-plugin/src/rules/dot-notation.ts 96.29% <0.00%> (-0.14%) ⬇️
... and 235 more

Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great to me, thanks @ALOHACREPES345! 🎉

packages/eslint-plugin/src/rules/no-unused-vars.ts Outdated Show resolved Hide resolved
@JoshuaKGoldberg
Copy link
Member

Looks like codecov is having an unhappy moment. I'll apply the suggested fix to get a new commit, maybe that'll shake it into fixing itself.

@JoshuaKGoldberg JoshuaKGoldberg merged commit 6f8db8b into typescript-eslint:main Mar 27, 2022
crapStone pushed a commit to Calciumdibromid/CaBr2 that referenced this pull request Mar 31, 2022
This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
| [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint) | devDependencies | minor | [`5.16.0` -> `5.17.0`](https://renovatebot.com/diffs/npm/@typescript-eslint%2feslint-plugin/5.16.0/5.17.0) |
| [@typescript-eslint/parser](https://github.com/typescript-eslint/typescript-eslint) | devDependencies | minor | [`5.16.0` -> `5.17.0`](https://renovatebot.com/diffs/npm/@typescript-eslint%2fparser/5.16.0/5.17.0) |

---

### Release Notes

<details>
<summary>typescript-eslint/typescript-eslint (@&#8203;typescript-eslint/eslint-plugin)</summary>

### [`v5.17.0`](https://github.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/eslint-plugin/CHANGELOG.md#&#8203;5170-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5160v5170-2022-03-28)

[Compare Source](typescript-eslint/typescript-eslint@v5.16.0...v5.17.0)

##### Features

-   **eslint-plugin:** \[no-unused-vars] add destructuredArrayIgnorePattern options ([#&#8203;4748](typescript-eslint/typescript-eslint#4748)) ([6f8db8b](typescript-eslint/typescript-eslint@6f8db8b))

</details>

<details>
<summary>typescript-eslint/typescript-eslint (@&#8203;typescript-eslint/parser)</summary>

### [`v5.17.0`](https://github.com/typescript-eslint/typescript-eslint/blob/HEAD/packages/parser/CHANGELOG.md#&#8203;5170-httpsgithubcomtypescript-eslinttypescript-eslintcomparev5160v5170-2022-03-28)

[Compare Source](typescript-eslint/typescript-eslint@v5.16.0...v5.17.0)

**Note:** Version bump only for package [@&#8203;typescript-eslint/parser](https://github.com/typescript-eslint/parser)

</details>

---

### Configuration

📅 **Schedule**: At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about these updates again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, click this checkbox.

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).

Co-authored-by: cabr2-bot <cabr2.help@gmail.com>
Reviewed-on: https://codeberg.org/Calciumdibromid/CaBr2/pulls/1264
Reviewed-by: 6543 <6543@noreply.codeberg.org>
Co-authored-by: Calciumdibromid Bot <cabr2_bot@noreply.codeberg.org>
Co-committed-by: Calciumdibromid Bot <cabr2_bot@noreply.codeberg.org>
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 24, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[no-unused-vars] implement destructuredArrayIgnorePattern from eslint 8.11
2 participants