Skip to content

Revert: feat(eslint-plugin): [no-unnecessary-type-arguments] report inferred required types using assignability API (#11918)#12199

Merged
bradzacher merged 1 commit intomainfrom
bjz/revert-11918
Apr 5, 2026
Merged

Revert: feat(eslint-plugin): [no-unnecessary-type-arguments] report inferred required types using assignability API (#11918)#12199
bradzacher merged 1 commit intomainfrom
bjz/revert-11918

Conversation

@bradzacher
Copy link
Copy Markdown
Member

@bradzacher bradzacher commented Apr 5, 2026

PR Checklist

Overview

This reverts #11918 (and the fix for it #12163)

The change had a larger blast radius than intended and has caused a lot of problems for users.
To expedite a fix for it we're reverting the change.

The core team discussed this internally and we think there's value in the change. However it needs to be reworked so that parts of it are behind an option (or removed). This discussion and rework will take time -- hence revert and then rework.

…nferred required types using assignability API (#11918)
@typescript-eslint
Copy link
Copy Markdown
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.

@netlify
Copy link
Copy Markdown

netlify bot commented Apr 5, 2026

Deploy Preview for typescript-eslint ready!

Name Link
🔨 Latest commit 3d8223b
🔍 Latest deploy log https://app.netlify.com/projects/typescript-eslint/deploys/69d238fdf2277900095d1d68
😎 Deploy Preview https://deploy-preview-12199--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: 99 (no change from production)
Accessibility: 97 (no change from production)
Best Practices: 92 (🔴 down 8 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 project configuration.

@bradzacher bradzacher requested a review from a team April 5, 2026 10:27
@nx-cloud
Copy link
Copy Markdown

nx-cloud bot commented Apr 5, 2026

View your CI Pipeline Execution ↗ for commit 3d8223b

Command Status Duration Result
nx run-many -t lint ✅ Succeeded 2m 8s View ↗
nx run-many -t typecheck ✅ Succeeded 44s View ↗
nx test typescript-estree --coverage=false ✅ Succeeded 2s View ↗
nx run types:build ✅ Succeeded 2s View ↗
nx run integration-tests:test ✅ Succeeded 3s View ↗
nx test eslint-plugin-internal --coverage=false ✅ Succeeded 2s View ↗
nx run generate-configs ✅ Succeeded 5s View ↗
nx run-many --target=build --parallel --exclude... ✅ Succeeded 12s View ↗
Additional runs (34) ✅ Succeeded ... View ↗

☁️ Nx Cloud last updated this comment at 2026-04-05 10:32:45 UTC

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 86.70%. Comparing base (4933417) to head (3d8223b).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #12199      +/-   ##
==========================================
- Coverage   86.72%   86.70%   -0.03%     
==========================================
  Files         512      512              
  Lines       16290    16265      -25     
  Branches     5070     5058      -12     
==========================================
- Hits        14128    14103      -25     
  Misses       1474     1474              
  Partials      688      688              
Flag Coverage Δ
unittest 86.70% <100.00%> (-0.03%) ⬇️

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

Files with missing lines Coverage Δ
...-plugin/src/rules/no-unnecessary-type-arguments.ts 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@bradzacher bradzacher merged commit e372a66 into main Apr 5, 2026
67 of 69 checks passed
@bradzacher bradzacher deleted the bjz/revert-11918 branch April 5, 2026 12:08
graphite-app bot pushed a commit to oxc-project/tsgolint that referenced this pull request Apr 16, 2026
Align with typescript-eslint/typescript-eslint#12199 by reverting the #853 port of inferred-type reporting.

Keep the later default-type equivalence fix from #862.

Validation:
- go test ./internal/rules/no_unnecessary_type_arguments/...
- cd e2e && pnpm test --run snapshot.test.ts

fixes oxc-project/oxc#21464
fixes #875
fixes oxc-project/oxc#21096
fises oxc-project/oxc#20933
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: [no-unnecessary-type-arguments] false positives in 8.52.0

2 participants