Skip to content

lint: avoid unintented use of globals in code and tests, improve test for installing/overwriting globals#4478

Merged
Uzlopak merged 2 commits intomainfrom
eslint-prevent-use-of-globals
Aug 28, 2025
Merged

lint: avoid unintented use of globals in code and tests, improve test for installing/overwriting globals#4478
Uzlopak merged 2 commits intomainfrom
eslint-prevent-use-of-globals

Conversation

@Uzlopak
Copy link
Contributor

@Uzlopak Uzlopak commented Aug 27, 2025

This PR is using the eslint rule no-restricted-globals so that we avoid using accidently globals, while we want to use or test our own implementation. Also rewrote the test for the install() function.

This relates to...

Rationale

Changes

Features

Bug Fixes

Breaking Changes and Deprecations

Status

@Uzlopak Uzlopak merged commit 4d0b0ab into main Aug 28, 2025
36 checks passed
@Uzlopak Uzlopak deleted the eslint-prevent-use-of-globals branch August 28, 2025 08:03
@github-actions github-actions bot mentioned this pull request Sep 9, 2025
slagiewka pushed a commit to slagiewka/undici that referenced this pull request Feb 14, 2026
… for installing/overwriting globals (nodejs#4478)

* lint: avoid unintented use of globals  in code and tests, improve test for installing/overwriting globals

* Apply suggestions from code review
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.

2 participants