Bump eslint from 9.39.2 to 10.9.1 - #113
Merged
Merged
Conversation
Member
|
@dependabot recreate |
Bumps [eslint](https://github.com/eslint/eslint) from 9.39.2 to 10.9.1. - [Release notes](https://github.com/eslint/eslint/releases) - [Commits](eslint/eslint@v9.39.2...v10.9.1) --- updated-dependencies: - dependency-name: eslint dependency-version: 10.4.1 dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
dependabot
Bot
force-pushed
the
dependabot/npm_and_yarn/eslint-10.4.1
branch
from
September 1, 2026 15:47
b14cdae to
36bcdd7
Compare
BrandonLWhite
added a commit
that referenced
this pull request
Sep 1, 2026
@actions/core 3.0.0 is ESM-only ("type": "module", and its exports map
offers only an "import" condition). The upstream release notes state
that "CommonJS consumers must use dynamic import() instead of
require()", so a plain version bump cannot work: ncc failed with
"Package path . is not exported from package @actions/core", which
also aborted `npm ci` via the prepare script and took the units job
down with it.
Migrate the action to ESM instead:
- Add "type": "module" and convert index.js and find-python-projects.js
to import/export. ncc then bundles dist/index.js as ESM and emits its
own dist/package.json type marker plus sourcemap-register.cjs,
replacing the now-stale sourcemap-register.js.
- Rewrite the test mocks. ESM namespace objects are sealed, so
jest.spyOn can no longer patch @actions/core or the local module;
both tests now use jest.unstable_mockModule ahead of a dynamic
import. Native ESM in Jest needs --experimental-vm-modules, so the
test script invokes jest through node directly.
- Point eslint at the new module system (sourceType module, ecmaVersion
2022 for top-level await) and drop the commonjs globals.
Also declares globals, @eslint/js and @eslint/eslintrc, which
eslint.config.cjs requires but nothing depended on. These stopped being
hoisted transitives when eslint 10 landed in #113, so `npm run lint`
had been failing outright on main; declaring them is what makes the
lint change above verifiable.
action.yml is unchanged: the node20 runtime runs ESM fine, and
@actions/core 3 sets no engines constraint. All 4 snapshots still match
byte-for-byte, so behavior is unchanged.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.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.
Bumps eslint from 9.39.2 to 10.9.1.
Release notes
Sourced from eslint's releases.
... (truncated)
Commits
5c8c24110.9.1a7f3b7dBuild: changelog update for 10.9.11e641c9fix: no-loss-of-precision false positive with trailing decimal point (#21251)ad74a8ddocs: add deprecation steps for EOL package versions (#21248)3c3ae53chore: update ecosystem plugins (#21249)c27bc9210.9.0fa831d9Build: changelog update for 10.9.0899dbf1chore: update github/codeql-action action to v4.37.7 (#21243)08de88efeat: handle underflow in no-loss-of-precision (#21218)9ef407adocs: use eslint.config.* wherever config file names are listed (#21216)