fix: convert require() to ES import for pretty-error#310
Merged
EndBug merged 2 commits intodependabot/npm_and_yarn/multi-9ddd7eeb1cfrom Feb 28, 2026
Merged
fix: convert require() to ES import for pretty-error#310EndBug merged 2 commits intodependabot/npm_and_yarn/multi-9ddd7eeb1cfrom
require() to ES import for pretty-error#310EndBug merged 2 commits intodependabot/npm_and_yarn/multi-9ddd7eeb1cfrom
Conversation
Co-authored-by: EndBug <26386270+EndBug@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update dependencies for minimatch and @typescript-eslint/eslint-plugin
fix: convert Feb 28, 2026
require() to ES import for pretty-error
5d54988
into
dependabot/npm_and_yarn/multi-9ddd7eeb1c
4 checks passed
EndBug
added a commit
that referenced
this pull request
Feb 28, 2026
* chore(deps): bump minimatch and @typescript-eslint/eslint-plugin Bumps [minimatch](https://github.com/isaacs/minimatch) to 3.1.5 and updates ancestor dependency [@typescript-eslint/eslint-plugin](https://github.com/typescript-eslint/typescript-eslint/tree/HEAD/packages/eslint-plugin). These dependencies need to be updated together. Updates `minimatch` from 3.1.2 to 3.1.5 - [Changelog](https://github.com/isaacs/minimatch/blob/main/changelog.md) - [Commits](isaacs/minimatch@v3.1.2...v3.1.5) Updates `@typescript-eslint/eslint-plugin` from 6.21.0 to 8.56.1 - [Release notes](https://github.com/typescript-eslint/typescript-eslint/releases) - [Changelog](https://github.com/typescript-eslint/typescript-eslint/blob/main/packages/eslint-plugin/CHANGELOG.md) - [Commits](https://github.com/typescript-eslint/typescript-eslint/commits/v8.56.1/packages/eslint-plugin) --- updated-dependencies: - dependency-name: minimatch dependency-version: 3.1.5 dependency-type: indirect - dependency-name: "@typescript-eslint/eslint-plugin" dependency-version: 8.56.1 dependency-type: direct:development ... Signed-off-by: dependabot[bot] <support@github.com> * fix: convert `require()` to ES import for `pretty-error` (#310) * Initial plan * fix: convert require() import to ES import for pretty-error Co-authored-by: EndBug <26386270+EndBug@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: EndBug <26386270+EndBug@users.noreply.github.com> --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com> Co-authored-by: EndBug <26386270+EndBug@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
@typescript-eslint/eslint-pluginupgrade from v6 to v8 introduced the@typescript-eslint/no-require-importsrule, which flagsrequire()calls that the oldno-var-requiresdisable comment did not cover.Changes
src/index.ts: Replacerequire('pretty-error').start()with an ES-style import:Uses
import * assince the package uses aexport =declaration (CommonJS default export) withoutesModuleInteropenabled in tsconfig.🔒 GitHub Advanced Security automatically protects Copilot coding agent pull requests. You can protect all pull requests by enabling Advanced Security for your repositories. Learn more about Advanced Security.