Skip to content

feat(eslint-plugin): [no-unused-vars] support ignoreClassWithStaticInitBlock #9325

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

Merged
merged 2 commits into from
Jun 25, 2024

Conversation

bradzacher
Copy link
Member

PR Checklist

Overview

This was added upstream in eslint/eslint#18170.
This syncs the changes to our implementation.

NOTE: stacked on top of #9324 - retarget to v8 before merging

@bradzacher bradzacher added the enhancement New feature or request label Jun 11, 2024
@bradzacher bradzacher added this to the 8.0.0 milestone Jun 11, 2024
@typescript-eslint
Copy link
Contributor

Thanks for the PR, @bradzacher!

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.

@bradzacher bradzacher force-pushed the no-unused-vars-ignoreClassWithStaticInitBlock branch from b17931e to 5663753 Compare June 11, 2024 02:39
Copy link

nx-cloud bot commented Jun 11, 2024

☁️ Nx Cloud Report

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

📂 See all runs for this CI Pipeline Execution


✅ Successfully ran 1 target

Sent with 💌 from NxCloud.

Copy link

codecov bot commented Jun 11, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 87.46%. Comparing base (2cdf240) to head (372d676).

Additional details and impacted files
@@           Coverage Diff           @@
##               v8    #9325   +/-   ##
=======================================
  Coverage   87.45%   87.46%           
=======================================
  Files         394      394           
  Lines       13329    13336    +7     
  Branches     3856     3859    +3     
=======================================
+ Hits        11657    11664    +7     
  Misses       1366     1366           
  Partials      306      306           
Flag Coverage Δ
unittest 87.46% <100.00%> (+<0.01%) ⬆️

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

Files Coverage Δ
packages/eslint-plugin/src/rules/no-unused-vars.ts 97.52% <100.00%> (+0.08%) ⬆️

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.

🙌

@JoshuaKGoldberg JoshuaKGoldberg added the 1 approval >=1 team member has approved this PR; we're now leaving it open for more reviews before we merge label Jun 24, 2024
Base automatically changed from no-unused-vars-v9 to v8 June 25, 2024 04:45
@bradzacher bradzacher force-pushed the no-unused-vars-ignoreClassWithStaticInitBlock branch from 06b25f0 to 7a8ca35 Compare June 25, 2024 05:11
Copy link

netlify bot commented Jun 25, 2024

Deploy Preview for typescript-eslint ready!

Name Link
🔨 Latest commit 372d676
🔍 Latest deploy log https://app.netlify.com/sites/typescript-eslint/deploys/667a63286fc823000833ac28
😎 Deploy Preview https://deploy-preview-9325--typescript-eslint.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 98 (🔴 down 2 from production)
Accessibility: 100 (no change from production)
Best Practices: 92 (no change from production)
SEO: 90 (no change from production)
PWA: 80 (no change from production)
View the detailed breakdown and full score reports

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

@bradzacher bradzacher merged commit 332a271 into v8 Jun 25, 2024
64 checks passed
@bradzacher bradzacher changed the title feat(eslint-plugin): [no-unused-vars] add reportUnusedIgnorePattern option feat(eslint-plugin): [no-unused-vars] support ignoreClassWithStaticInitBlock Jun 25, 2024
@bradzacher bradzacher deleted the no-unused-vars-ignoreClassWithStaticInitBlock branch June 25, 2024 07:28
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 3, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
1 approval >=1 team member has approved this PR; we're now leaving it open for more reviews before we merge enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhancement: [no-unused-vars] Support for ignoreClassWithStaticInitBlock and reportUsedIgnorePattern Options
2 participants