Skip to content

Conversation

@quisido
Copy link
Contributor

@quisido quisido commented Dec 22, 2025

Closes #9250

@snowystinger
Copy link
Member

I think globalThis needs to be added either via ecmaVersion or in the globals section of eslint

@quisido
Copy link
Contributor Author

quisido commented Dec 23, 2025

I think globalThis needs to be added either via ecmaVersion or in the globals section of eslint

The GH issue describes it as a built-in for TypeScript. Is it possible for the CI check to run to validate this via tsc?

@quisido
Copy link
Contributor Author

quisido commented Jan 5, 2026

I think globalThis needs to be added either via ecmaVersion or in the globals section of eslint

Thanks, I've added it to ESLint's globals for TypeScript exclusively, and it appears to be passing the lint workflow now. :)

Copy link
Member

@snowystinger snowystinger left a comment

Choose a reason for hiding this comment

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

Thanks, maybe we can eventually update our ecmaVersion to support this without the need for the explicit global

@yihuiliao yihuiliao changed the title use typeof globalThis chore: use typeof globalThis to reference global object Jan 7, 2026
@yihuiliao yihuiliao added this pull request to the merge queue Jan 7, 2026
Merged via the queue into adobe:main with commit 556022a Jan 7, 2026
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

@react-aria/utils should not depend on @types/node.

4 participants