Skip to content

Bump eslint from 9.39.4 to 10.4.0#655

Merged
thestinger merged 2 commits into
GrapheneOS:mainfrom
ggtlvkma356:npm_and_yarn/main/eslint-10.3.0
Jun 3, 2026
Merged

Bump eslint from 9.39.4 to 10.4.0#655
thestinger merged 2 commits into
GrapheneOS:mainfrom
ggtlvkma356:npm_and_yarn/main/eslint-10.3.0

Conversation

@ggtlvkma356

@ggtlvkma356 ggtlvkma356 commented May 15, 2026

Copy link
Copy Markdown
Contributor

Supersede #638, #656.

Dependencies to @eslint/js was removed from eslint. See eslint/eslint#20539.

@ggtlvkma356 ggtlvkma356 changed the title Npm and yarn/main/eslint 10.3.0 Bump eslint from 9.39.4 to 10.3.0 May 15, 2026

@inthewaves inthewaves left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

We should update README.md as it says Node.js 20+, but they removed support for Node.js < v20.19: https://eslint.org/docs/latest/use/migrate-to-10.0.0#drop-old-node

ESLint is officially dropping support for these versions of Node.js starting with ESLint v10.0.0. ESLint now supports the following versions of Node.js:

  • Node.js v20.19.0 and above
  • Node.js v22.13.0 and above
  • Node.js v24 and above

To address: Make sure you upgrade to at least Node.js v20.19.0 when using ESLint v10.0.0.

@inthewaves

Copy link
Copy Markdown
Member

Actually pdfjs seems to want higher Node.js too (though haven't seen issues)l, this is from the CI run

> Task :app:npmSetup
npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE   package: 'pdfjs-dist@5.7.284',
npm warn EBADENGINE   required: { node: '>=22.13.0 || >=24' },
npm warn EBADENGINE   current: { node: 'v20.20.2', npm: '10.8.2' }
npm warn EBADENGINE }

@ggtlvkma356

Copy link
Copy Markdown
Contributor Author

Actually pdfjs seems to want higher Node.js too (though haven't seen issues)l, this is from the CI run

> Task :app:npmSetup
npm warn EBADENGINE Unsupported engine {
npm warn EBADENGINE   package: 'pdfjs-dist@5.7.284',
npm warn EBADENGINE   required: { node: '>=22.13.0 || >=24' },
npm warn EBADENGINE   current: { node: 'v20.20.2', npm: '10.8.2' }
npm warn EBADENGINE }

That is likely because of the default version used by setup-node. I can change the workflow to use a higher version.

@ggtlvkma356 ggtlvkma356 changed the title Bump eslint from 9.39.4 to 10.3.0 Bump eslint from 9.39.4 to 10.4.0 May 18, 2026
@ggtlvkma356

Copy link
Copy Markdown
Contributor Author

I have made CI use node 22. Also upgraded eslint to 10.4.0, which doesn't have extra changes needed.

@ggtlvkma356 ggtlvkma356 force-pushed the npm_and_yarn/main/eslint-10.3.0 branch from 91cb9dd to a70a767 Compare May 18, 2026 13:55

@inthewaves inthewaves left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Passed and works locally

@ggtlvkma356 ggtlvkma356 force-pushed the npm_and_yarn/main/eslint-10.3.0 branch from a70a767 to e225331 Compare June 3, 2026 14:14
@ggtlvkma356

Copy link
Copy Markdown
Contributor Author

Updated to latest main.

@thestinger

Copy link
Copy Markdown
Member

@ggtlvkma356 Can you split the Node.js version change into a separate commit? The eslint updates could also be merged into 1 commit.

@thestinger

Copy link
Copy Markdown
Member

There should probably just be 1 commit updating eslint which fixes the issue. Can just drop the dependabot commit.

@ggtlvkma356 ggtlvkma356 force-pushed the npm_and_yarn/main/eslint-10.3.0 branch from e225331 to 6f9953a Compare June 3, 2026 15:02
@ggtlvkma356

Copy link
Copy Markdown
Contributor Author

@thestinger Ok I have updated with 1 commit for updating the eslint version and 1 commit for updating node version.

@thestinger thestinger merged commit b68c12e into GrapheneOS:main Jun 3, 2026
5 checks passed
@thestinger

Copy link
Copy Markdown
Member

@ggtlvkma356 Could we use Node.js 24 instead of 22?

@thestinger

Copy link
Copy Markdown
Member

10.4.1 was released so I squashed that into it.

@ggtlvkma356

Copy link
Copy Markdown
Contributor Author

@thestinger I tested node 24 locally and it builds and tests fine. Since it is mainly used to run the build script I think it is fine to update.

@thestinger

Copy link
Copy Markdown
Member

@ggtlvkma356 Okay, I just modified the existing commit to keep the history clean.

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