Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools: update eslint to 9.5.0 #53515

Merged
merged 2 commits into from
Jun 22, 2024
Merged

Conversation

nodejs-github-bot
Copy link
Collaborator

This is an automated update of eslint to 9.5.0.

@nodejs-github-bot nodejs-github-bot added the tools Issues and PRs related to the tools directory. label Jun 19, 2024
@targos
Copy link
Member

targos commented Jun 19, 2024

Update LGTM but it looks like our config is broken: https://github.com/nodejs/node/actions/runs/9587485514/job/26437627528?pr=53515

ESLint: 9.5.0

TypeError: Cannot serialize key "default" in 0: Function values are not supported.
    at languageOptionsToJSON (/home/runner/work/node/node/tools/eslint/node_modules/eslint/lib/config/flat-config-array.js:152:23)
    at languageOptionsToJSON (/home/runner/work/node/node/tools/eslint/node_modules/eslint/lib/config/flat-config-array.js:146:35)
    at languageOptionsToJSON (/home/runner/work/node/node/tools/eslint/node_modules/eslint/lib/config/flat-config-array.js:146:35)
    at languageOptionsToJSON (/home/runner/work/node/node/tools/eslint/node_modules/eslint/lib/config/flat-config-array.js:146:35)
    at languageOptionsToJSON (/home/runner/work/node/node/tools/eslint/node_modules/eslint/lib/config/flat-config-array.js:146:35)
    at Object.value (/home/runner/work/node/node/tools/eslint/node_modules/eslint/lib/config/flat-config-array.js:410:38)
    at stringify (/home/runner/work/node/node/tools/eslint/node_modules/json-stable-stringify-without-jsonify/index.js:25:25)
    at module.exports (/home/runner/work/node/node/tools/eslint/node_modules/json-stable-stringify-without-jsonify/index.js:68:7)
    at hashOfConfigFor (/home/runner/work/node/node/tools/eslint/node_modules/eslint/lib/cli-engine/lint-result-cache.js:50:75)
    at LintResultCache.getCachedLintResults (/home/runner/work/node/node/tools/eslint/node_modules/eslint/lib/cli-engine/lint-result-cache.js:116:30)
make: *** [Makefile:[13](https://github.com/nodejs/node/actions/runs/9587485514/job/26437627528?pr=53515#step:5:14)95: lint-js] Error 2

@targos
Copy link
Member

targos commented Jun 20, 2024

The problematic part of the config is

node/eslint.config.mjs

Lines 79 to 86 in b952ee1

parserOptions: {
babelOptions: {
plugins: [
babelPluginSyntaxImportAttributes,
],
},
requireConfigFile: false,
},

@targos targos added the request-ci Add this label to start a Jenkins CI on a PR. label Jun 21, 2024
@github-actions github-actions bot removed the request-ci Add this label to start a Jenkins CI on a PR. label Jun 21, 2024
@nodejs-github-bot
Copy link
Collaborator Author

CI: https://ci.nodejs.org/job/node-test-pull-request/59907/

@targos targos added the commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. label Jun 22, 2024
@targos
Copy link
Member

targos commented Jun 22, 2024

@nodejs/linting

Copy link
Contributor

@aduh95 aduh95 left a comment

Choose a reason for hiding this comment

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

RSLGTM

@aduh95 aduh95 added author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue Add this label to land a pull request using GitHub Actions. labels Jun 22, 2024
@nodejs-github-bot nodejs-github-bot removed the commit-queue Add this label to land a pull request using GitHub Actions. label Jun 22, 2024
@nodejs-github-bot nodejs-github-bot merged commit 45c2e25 into main Jun 22, 2024
60 checks passed
@nodejs-github-bot nodejs-github-bot deleted the actions/tools-update-eslint branch June 22, 2024 12:54
@nodejs-github-bot
Copy link
Collaborator Author

Landed in 45c2e25

targos pushed a commit that referenced this pull request Jun 25, 2024
PR-URL: #53515
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
targos pushed a commit that referenced this pull request Jun 25, 2024
PR-URL: #53515
Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com>
@marco-ippolito marco-ippolito added the dont-land-on-v20.x PRs that should not land on the v20.x-staging branch and should not be released in v20.x. label Jul 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
author ready PRs that have at least one approval, no pending requests for changes, and a CI started. commit-queue-squash Add this label to instruct the Commit Queue to squash all the PR commits into the first one. dont-land-on-v20.x PRs that should not land on the v20.x-staging branch and should not be released in v20.x. tools Issues and PRs related to the tools directory.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants