Skip to content

fix(typescript-eslint): address bugs in config() around global ignores #11065

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

Conversation

kirkwaiblinger
Copy link
Member

PR Checklist

Overview

Continuation of #10755.

Co-authored-by: @jeremy-code

jeremy-code and others added 3 commits February 15, 2025 22:36
…y meta keys

- `config-helper.ts` only adds base config to config array if it contains keys other than `files`, `ignores`, `names`.
- Fixes bug where config helper would create global ignores when extending with base config of `ignores`
- Fixes bug where config helper creates extraneous config when extending with base config of only `files`, `ignores`, `names`
@typescript-eslint
Copy link
Contributor

Thanks for the PR, @kirkwaiblinger!

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.

Copy link

netlify bot commented Apr 14, 2025

Deploy Preview for typescript-eslint ready!

Name Link
🔨 Latest commit c3cd861
🔍 Latest deploy log https://app.netlify.com/sites/typescript-eslint/deploys/67fd49aaa267db00084a97b0
😎 Deploy Preview https://deploy-preview-11065--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 (🟢 up 7 from production)
Accessibility: 100 (no change from production)
Best Practices: 100 (no change from production)
SEO: 98 (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.

Copy link

nx-cloud bot commented Apr 14, 2025

View your CI Pipeline Execution ↗ for commit c3cd861.

Command Status Duration Result
nx run typescript-eslint:test -- --coverage ✅ Succeeded 3s View ↗
nx run eslint-plugin:test -- --coverage ✅ Succeeded 1s View ↗
nx test typescript-eslint ✅ Succeeded 2s View ↗
nx test utils ✅ Succeeded <1s View ↗
nx run ast-spec:test -- --coverage ✅ Succeeded <1s View ↗
nx run types:build ✅ Succeeded <1s View ↗
nx run visitor-keys:test -- --coverage ✅ Succeeded <1s View ↗
nx test ast-spec ✅ Succeeded <1s View ↗
Additional runs (26) ✅ Succeeded ... View ↗

☁️ Nx Cloud last updated this comment at 2025-04-14 17:52:40 UTC

@kirkwaiblinger kirkwaiblinger marked this pull request as ready for review April 14, 2025 06:22
@kirkwaiblinger kirkwaiblinger force-pushed the handle-global-ignore-in-config branch from 814670c to 0731285 Compare April 14, 2025 06:31
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.

Odo from Deep Space 9 acting as an umpire aggressively gesturing 'safe!'

@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 Apr 14, 2025
Copy link

codecov bot commented Apr 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.32%. Comparing base (b3688be) to head (c3cd861).
Report is 4 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main   #11065   +/-   ##
=======================================
  Coverage   84.31%   84.32%           
=======================================
  Files         497      497           
  Lines       27766    27778   +12     
  Branches     5075     5082    +7     
=======================================
+ Hits        23411    23423   +12     
  Misses       4184     4184           
  Partials      171      171           
Flag Coverage Δ
unittest 84.32% <100.00%> (+<0.01%) ⬆️

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

Files with missing lines Coverage Δ
packages/typescript-eslint/src/config-helper.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.

@github-actions github-actions bot removed the 1 approval >=1 team member has approved this PR; we're now leaving it open for more reviews before we merge label Apr 14, 2025
@bradzacher bradzacher merged commit be558e5 into typescript-eslint:main Apr 15, 2025
57 checks passed
@kirkwaiblinger kirkwaiblinger deleted the handle-global-ignore-in-config branch April 15, 2025 03:37
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 23, 2025
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.

Bug: config-helper.ts has unexpected behavior when base config contains only meta keys
4 participants