Skip to content

Conversation

@Uzlopak
Copy link
Contributor

@Uzlopak Uzlopak commented Sep 15, 2025

Increases consistency of imports/require calls.

This relates to...

Rationale

Changes

Features

Bug Fixes

Breaking Changes and Deprecations

Status

@Uzlopak Uzlopak requested a review from Copilot September 15, 2025 10:57
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR activates the ESLint rule n/prefer-node-protocol to enforce the use of the 'node:' prefix when requiring Node.js built-in modules, improving consistency of import/require calls throughout the codebase.

  • Adds the n/prefer-node-protocol ESLint rule to enforce 'node:' prefix usage
  • Updates all import statements in test files to use the 'node:' prefix for built-in modules
  • Changes CI workflow to use latest Node.js version instead of LTS for more consistent linting

Reviewed Changes

Copilot reviewed 21 out of 34 changed files in this pull request and generated no comments.

Show a summary per file
File Description
eslint.config.js Adds the n/prefer-node-protocol ESLint rule configuration
.github/workflows/ci.yml Updates Node.js version from LTS to latest for CI linting consistency
test/utils/esm-wrapper.mjs Updates http import to use node: prefix
test/types/*.test-d.ts Updates various Node.js built-in imports to use node: prefix
test/jest/parser-timeout.test.js Updates events require to use node: prefix

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Uzlopak Uzlopak requested a review from Copilot September 15, 2025 19:56
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

Copilot reviewed 21 out of 34 changed files in this pull request and generated no new comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@Uzlopak Uzlopak merged commit 52412b3 into main Sep 16, 2025
28 checks passed
@Uzlopak Uzlopak deleted the prefer-node-protocol branch September 16, 2025 07:04
@github-actions github-actions bot mentioned this pull request Jan 5, 2026
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.

3 participants