From d8741b8eb931b7330c800af4a87bb987af837b1c Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Thu, 12 Feb 2026 18:38:54 +0800 Subject: [PATCH] Update ESLint related dependencies (major) (#18870) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: fisker Cheung Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> --- package.json | 2 +- ...ent-property-check-in-parentheses-check.js | 4 +-- .../flat-ast-path-call.js | 2 +- .../no-doc-public-import.js | 2 +- .../no-node-comments.js | 2 +- .../no-unnecessary-ast-path-call.js | 2 +- .../prefer-create-type-check-function.js | 2 +- .../prefer-indent-if-break.js | 2 +- .../prefer-is-non-empty-array.js | 2 +- .../print-function-parameter-order.js | 2 +- yarn.lock | 30 +++++++++---------- 11 files changed, 25 insertions(+), 27 deletions(-) diff --git a/package.json b/package.json index d6616829e..f8d628130 100644 --- a/package.json +++ b/package.json @@ -160,7 +160,7 @@ "eslint-plugin-n": "17.23.2", "eslint-plugin-regexp": "3.0.0", "eslint-plugin-simple-import-sort": "12.1.1", - "eslint-plugin-unicorn": "62.0.0", + "eslint-plugin-unicorn": "63.0.0", "esm-utils": "4.4.2", "get-port": "7.1.0", "gfm-test-suite": "0.0.2", diff --git a/scripts/tools/eslint-plugin-prettier-internal-rules/better-parent-property-check-in-parentheses-check.js b/scripts/tools/eslint-plugin-prettier-internal-rules/better-parent-property-check-in-parentheses-check.js index d5eb64799..8c320e298 100644 --- a/scripts/tools/eslint-plugin-prettier-internal-rules/better-parent-property-check-in-parentheses-check.js +++ b/scripts/tools/eslint-plugin-prettier-internal-rules/better-parent-property-check-in-parentheses-check.js @@ -57,10 +57,10 @@ export default { fixable: "code", }, create(context) { - if (path.basename(path.dirname(context.getFilename())) !== "parentheses") { + const { physicalFilename: file, sourceCode } = context; + if (path.basename(path.dirname(file)) !== "parentheses") { return {}; } - const sourceCode = context.getSourceCode(); return { [parentPropertyCheckSelector](node) { diff --git a/scripts/tools/eslint-plugin-prettier-internal-rules/flat-ast-path-call.js b/scripts/tools/eslint-plugin-prettier-internal-rules/flat-ast-path-call.js index 9e87c555a..bc1ebb3f4 100644 --- a/scripts/tools/eslint-plugin-prettier-internal-rules/flat-ast-path-call.js +++ b/scripts/tools/eslint-plugin-prettier-internal-rules/flat-ast-path-call.js @@ -36,7 +36,7 @@ export default { fixable: "code", }, create(context) { - const sourceCode = context.getSourceCode(); + const { sourceCode } = context; return { [selector](outerCall) { diff --git a/scripts/tools/eslint-plugin-prettier-internal-rules/no-doc-public-import.js b/scripts/tools/eslint-plugin-prettier-internal-rules/no-doc-public-import.js index 53ca92d10..0ec37af56 100644 --- a/scripts/tools/eslint-plugin-prettier-internal-rules/no-doc-public-import.js +++ b/scripts/tools/eslint-plugin-prettier-internal-rules/no-doc-public-import.js @@ -95,7 +95,7 @@ export default { fixable: "code", }, create(context) { - const file = context.getPhysicalFilename(); + const { physicalFilename: file } = context; if (ignored.has(file)) { return {}; } diff --git a/scripts/tools/eslint-plugin-prettier-internal-rules/no-node-comments.js b/scripts/tools/eslint-plugin-prettier-internal-rules/no-node-comments.js index 514c397ee..f8816f444 100644 --- a/scripts/tools/eslint-plugin-prettier-internal-rules/no-node-comments.js +++ b/scripts/tools/eslint-plugin-prettier-internal-rules/no-node-comments.js @@ -50,7 +50,7 @@ export default { }, }, create(context) { - const fileName = context.getFilename(); + const { physicalFilename: fileName } = context; const ignored = new Map( context.options.map((option) => { if (typeof option === "string") { diff --git a/scripts/tools/eslint-plugin-prettier-internal-rules/no-unnecessary-ast-path-call.js b/scripts/tools/eslint-plugin-prettier-internal-rules/no-unnecessary-ast-path-call.js index a90e0d1f2..450129de4 100644 --- a/scripts/tools/eslint-plugin-prettier-internal-rules/no-unnecessary-ast-path-call.js +++ b/scripts/tools/eslint-plugin-prettier-internal-rules/no-unnecessary-ast-path-call.js @@ -21,7 +21,7 @@ export default { fixable: "code", }, create(context) { - const sourceCode = context.getSourceCode(); + const { sourceCode } = context; return { [selector](node) { diff --git a/scripts/tools/eslint-plugin-prettier-internal-rules/prefer-create-type-check-function.js b/scripts/tools/eslint-plugin-prettier-internal-rules/prefer-create-type-check-function.js index 61cf6124b..4fe320e70 100644 --- a/scripts/tools/eslint-plugin-prettier-internal-rules/prefer-create-type-check-function.js +++ b/scripts/tools/eslint-plugin-prettier-internal-rules/prefer-create-type-check-function.js @@ -176,7 +176,7 @@ export default { const { ignoreSingleType = false, onlyTopLevelFunctions = false } = { ...context.options[0], }; - const sourceCode = context.getSourceCode(); + const { sourceCode } = context; return { [functionSelector](functionNode) { diff --git a/scripts/tools/eslint-plugin-prettier-internal-rules/prefer-indent-if-break.js b/scripts/tools/eslint-plugin-prettier-internal-rules/prefer-indent-if-break.js index 952ddb667..d1c3262ed 100644 --- a/scripts/tools/eslint-plugin-prettier-internal-rules/prefer-indent-if-break.js +++ b/scripts/tools/eslint-plugin-prettier-internal-rules/prefer-indent-if-break.js @@ -25,7 +25,7 @@ export default { fixable: "code", }, create(context) { - const sourceCode = context.getSourceCode(); + const { sourceCode } = context; return { [selector](node) { diff --git a/scripts/tools/eslint-plugin-prettier-internal-rules/prefer-is-non-empty-array.js b/scripts/tools/eslint-plugin-prettier-internal-rules/prefer-is-non-empty-array.js index 7763adb47..e1288a517 100644 --- a/scripts/tools/eslint-plugin-prettier-internal-rules/prefer-is-non-empty-array.js +++ b/scripts/tools/eslint-plugin-prettier-internal-rules/prefer-is-non-empty-array.js @@ -59,7 +59,7 @@ export default { fixable: "code", }, create(context) { - const sourceCode = context.getSourceCode(); + const { sourceCode } = context; return { [selector](node) { diff --git a/scripts/tools/eslint-plugin-prettier-internal-rules/print-function-parameter-order.js b/scripts/tools/eslint-plugin-prettier-internal-rules/print-function-parameter-order.js index 14033b75b..37cd98bb8 100644 --- a/scripts/tools/eslint-plugin-prettier-internal-rules/print-function-parameter-order.js +++ b/scripts/tools/eslint-plugin-prettier-internal-rules/print-function-parameter-order.js @@ -10,7 +10,7 @@ export default { }, }, create(context) { - const sourceCode = context.getSourceCode(); + const { sourceCode } = context; return { ":function[params.length>=3]"(node) { diff --git a/yarn.lock b/yarn.lock index f121a43bc..4043e4001 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1346,8 +1346,8 @@ __metadata: linkType: hard "@eslint/eslintrc@npm:^3.3.1": - version: 3.3.1 - resolution: "@eslint/eslintrc@npm:3.3.1" + version: 3.3.3 + resolution: "@eslint/eslintrc@npm:3.3.3" dependencies: ajv: "npm:^6.12.4" debug: "npm:^4.3.2" @@ -1355,10 +1355,10 @@ __metadata: globals: "npm:^14.0.0" ignore: "npm:^5.2.0" import-fresh: "npm:^3.2.1" - js-yaml: "npm:^4.1.0" + js-yaml: "npm:^4.1.1" minimatch: "npm:^3.1.2" strip-json-comments: "npm:^3.1.1" - checksum: 10/cc240addbab3c5fceaa65b2c8d5d4fd77ddbbf472c2f74f0270b9d33263dc9116840b6099c46b64c9680301146250439b044ed79278a1bcc557da412a4e3c1bb + checksum: 10/b586a364ff15ce1b68993aefc051ca330b1fece15fb5baf4a708d00113f9a14895cffd84a5f24c5a97bd4b4321130ab2314f90aa462a250f6b859c2da2cba1f3 languageName: node linkType: hard @@ -1376,7 +1376,7 @@ __metadata: languageName: node linkType: hard -"@eslint/plugin-kit@npm:^0.4.0, @eslint/plugin-kit@npm:^0.4.1": +"@eslint/plugin-kit@npm:^0.4.1": version: 0.4.1 resolution: "@eslint/plugin-kit@npm:0.4.1" dependencies: @@ -4572,18 +4572,16 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-unicorn@npm:62.0.0": - version: 62.0.0 - resolution: "eslint-plugin-unicorn@npm:62.0.0" +"eslint-plugin-unicorn@npm:63.0.0": + version: 63.0.0 + resolution: "eslint-plugin-unicorn@npm:63.0.0" dependencies: "@babel/helper-validator-identifier": "npm:^7.28.5" "@eslint-community/eslint-utils": "npm:^4.9.0" - "@eslint/plugin-kit": "npm:^0.4.0" change-case: "npm:^5.4.4" ci-info: "npm:^4.3.1" clean-regexp: "npm:^1.0.0" core-js-compat: "npm:^3.46.0" - esquery: "npm:^1.6.0" find-up-simple: "npm:^1.0.1" globals: "npm:^16.4.0" indent-string: "npm:^5.0.0" @@ -4596,7 +4594,7 @@ __metadata: strip-indent: "npm:^4.1.1" peerDependencies: eslint: ">=9.38.0" - checksum: 10/bae4fee1f9e65c0d7f3b6b59b46a1963393434956ebc5860281ff7141a4d4b494cf4d9db966d3fcf5baffbbfb2e92cec4864ba8de0af7c73a3ca1ba789827525 + checksum: 10/bfcaf383e8e244c13311900d4e152b1a4134f844ddc8514d86aca7da932a4663b144fceca7a32a796faaf53a84a203dcd3052ef846c05990dd285c19ed6c9f17 languageName: node linkType: hard @@ -4722,12 +4720,12 @@ __metadata: languageName: node linkType: hard -"esquery@npm:^1.5.0, esquery@npm:^1.6.0": - version: 1.6.0 - resolution: "esquery@npm:1.6.0" +"esquery@npm:^1.5.0": + version: 1.7.0 + resolution: "esquery@npm:1.7.0" dependencies: estraverse: "npm:^5.1.0" - checksum: 10/c587fb8ec9ed83f2b1bc97cf2f6854cc30bf784a79d62ba08c6e358bf22280d69aee12827521cf38e69ae9761d23fb7fde593ce315610f85655c139d99b05e5a + checksum: 10/4afaf3089367e1f5885caa116ef386dffd8bfd64da21fd3d0e56e938d2667cfb2e5400ab4a825aa70e799bb3741e5b5d63c0b94d86e2d4cf3095c9e64b2f5a15 languageName: node linkType: hard @@ -8437,7 +8435,7 @@ __metadata: eslint-plugin-n: "npm:17.23.2" eslint-plugin-regexp: "npm:3.0.0" eslint-plugin-simple-import-sort: "npm:12.1.1" - eslint-plugin-unicorn: "npm:62.0.0" + eslint-plugin-unicorn: "npm:63.0.0" esm-utils: "npm:4.4.2" espree: "npm:11.1.0" fast-glob: "npm:3.3.3"