From fb0e8c16d9b4277eeb0b580480902d841b6af131 Mon Sep 17 00:00:00 2001 From: gengjiawen Date: Mon, 21 Sep 2026 15:36:33 +0800 Subject: [PATCH] build(deps-dev): bump eslint to 10 and neostandard to 0.14.0-next.1 eslint 10 cannot be bumped on its own: neostandard 0.13.0 declares `peer eslint@^9.0.0`, so bumping eslint alone makes `npm install` fail with ERESOLVE and takes down every CI job, including ones unrelated to linting. That is what happens in #3371, which this replaces. neostandard 0.14.0-next.1 widens the peer range to `^9.22.0 || ^10.0.0`. It is still a prerelease, but the blast radius is limited to the lint job, and the caret range picks up the stable 0.14.0 once it ships. The resulting rule set is unchanged: 154 active rules before and after, the only difference being @stylistic/func-call-spacing renamed to @stylistic/function-call-spacing. The single new violation is the comma-first style in lib/rebuild.js, fixed here via `eslint --fix`. Worth doing now rather than later: the whole eslint 9.x line is marked deprecated on npm. --- lib/rebuild.js | 6 +++--- package.json | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/lib/rebuild.js b/lib/rebuild.js index 609817665e..afd08d9713 100644 --- a/lib/rebuild.js +++ b/lib/rebuild.js @@ -2,9 +2,9 @@ async function rebuild (gyp, argv) { gyp.todo.push( - { name: 'clean', args: [] } - , { name: 'configure', args: argv } - , { name: 'build', args: [] } + { name: 'clean', args: [] }, + { name: 'configure', args: argv }, + { name: 'build', args: [] } ) } diff --git a/package.json b/package.json index 9eb9183adc..3026c4c72a 100644 --- a/package.json +++ b/package.json @@ -41,10 +41,10 @@ "@commitlint/config-conventional": "^21.0.2", "bindings": "^1.5.0", "cross-env": "^10.1.0", - "eslint": "^9.39.1", + "eslint": "^10.11.0", "mocha": "^11.7.5", "nan": "^2.23.1", - "neostandard": "^0.13.0", + "neostandard": "^0.14.0-next.1", "require-inject": "^1.4.4" }, "scripts": {