Skip to content

Conversation

@JoshuaKGoldberg
Copy link
Member

@JoshuaKGoldberg JoshuaKGoldberg commented Sep 26, 2025

PR Checklist

Overview

As a nice side effect, this reduces the "Intentionally Omitted: When Not To Use It" comments from 7 to 6.

💖

@typescript-eslint
Copy link
Contributor

Thanks for the PR, @JoshuaKGoldberg!

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

netlify bot commented Sep 26, 2025

Deploy Preview for typescript-eslint ready!

Name Link
🔨 Latest commit d02375f
🔍 Latest deploy log https://app.netlify.com/projects/typescript-eslint/deploys/68d6a732cb93920008df28ae
😎 Deploy Preview https://deploy-preview-11642--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: 97 (🟢 up 4 from production)
Accessibility: 97 (no change from production)
Best Practices: 100 (no change from production)
SEO: 92 (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.

@nx-cloud
Copy link

nx-cloud bot commented Sep 26, 2025

View your CI Pipeline Execution ↗ for commit d02375f

Command Status Duration Result
nx test eslint-plugin --coverage=false ✅ Succeeded 5m 6s View ↗
nx test eslint-plugin-internal --coverage=false ✅ Succeeded 5s View ↗
nx run types:build ✅ Succeeded 5s View ↗
nx run integration-tests:test ✅ Succeeded 4s View ↗
nx run-many -t lint ✅ Succeeded 3m 13s View ↗
nx run-many -t typecheck ✅ Succeeded 1m 59s View ↗
nx run generate-configs ✅ Succeeded 9s View ↗
nx test typescript-estree --coverage=false ✅ Succeeded 2s View ↗
Additional runs (27) ✅ Succeeded ... View ↗

☁️ Nx Cloud last updated this comment at 2025-09-26 15:00:28 UTC

{/* Intentionally Omitted: When Not To Use It */}
## DOM Elements

By default, TypeScript's type checking only allows `for-of` loops over DOM iterables such as `HTMLCollectionOf` when the `dom.iterable` `lib` option is enabled.
Copy link
Member

Choose a reason for hiding this comment

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

Worth noting that this is basically a TS bug and will be changed in TS 6. There are probably better references but this is discussed at microsoft/TypeScript#62196

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm so excited for TS 6 🙌

Copy link
Member Author

Choose a reason for hiding this comment

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

@kirkwaiblinger I'm a little hesitant to mention "this might change hopefully probably" - do you mind if we leave it out of the docs for now?

Copy link
Member

Choose a reason for hiding this comment

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

think this one is pretty safe to count on to be in TS 6 (another ref here microsoft/TypeScript#54500), but I'm also ok if we leave it off and update the docs again in the future 👍

Copy link
Member Author

Choose a reason for hiding this comment

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

I set a calendar reminder for December 1st if we don't get to it by then.

Copy link
Member

Choose a reason for hiding this comment

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

Here's the issue I was thinking of

microsoft/TypeScript#60959

@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 Sep 29, 2025
{/* Intentionally Omitted: When Not To Use It */}
## DOM Elements

By default, TypeScript's type checking only allows `for-of` loops over DOM iterables such as `HTMLCollectionOf` when the `dom.iterable` `lib` option is enabled.
Copy link
Member

Choose a reason for hiding this comment

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

think this one is pretty safe to count on to be in TS 6 (another ref here microsoft/TypeScript#54500), but I'm also ok if we leave it off and update the docs again in the future 👍

@JoshuaKGoldberg JoshuaKGoldberg merged commit 692d4ee into typescript-eslint:main Oct 3, 2025
66 of 67 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

1 approval >=1 team member has approved this PR; we're now leaving it open for more reviews before we merge

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Docs: [prefer-for-of] mention non-array loops that cannot be converted

3 participants