From 723adee63506fb91dcee87412a1c2b56a50f15db Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Sun, 22 Mar 2026 09:22:04 +0800 Subject: [PATCH] Update dependency espree to v11.2.0 (#18932) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: fisker --- package.json | 2 +- .../new-target/__snapshots__/format.test.js.snap | 16 ---------------- tests/format/js/new-target/format.test.js | 1 - yarn.lock | 10 +++++----- 4 files changed, 6 insertions(+), 23 deletions(-) diff --git a/package.json b/package.json index ccbb0b1cc..02b3025dd 100644 --- a/package.json +++ b/package.json @@ -68,7 +68,7 @@ "editorconfig-without-wasm": "0.0.4", "emoji-regex": "10.6.0", "escape-string-regexp": "5.0.0", - "espree": "11.1.1", + "espree": "11.2.0", "fast-glob": "3.3.3", "fast-json-stable-stringify": "2.1.0", "file-entry-cache": "11.1.2", diff --git a/tests/format/js/new-target/__snapshots__/format.test.js.snap b/tests/format/js/new-target/__snapshots__/format.test.js.snap index 92b75eb73..e41b151b3 100644 --- a/tests/format/js/new-target/__snapshots__/format.test.js.snap +++ b/tests/format/js/new-target/__snapshots__/format.test.js.snap @@ -13,14 +13,6 @@ const x = new.target; ================================================================================ `; -exports[`outside-functions.js format[espree] 1`] = ` -"'new.target' can only be used in functions and class static block (1:11) -> 1 | const x = new.target; - | ^ - 2 | -Cause: 'new.target' can only be used in functions and class static block" -`; - exports[`outside-functions.js format[flow] 1`] = ` "Unexpected token \`.\` (1:14) > 1 | const x = new.target; @@ -64,14 +56,6 @@ exports[`range.js format 1`] = ` : ================================================================================ `; -exports[`range.js format[espree] 1`] = ` -"'new.target' can only be used in functions and class static block (2:1) - 1 | const x = -> 2 | new.target; - | ^ -Cause: 'new.target' can only be used in functions and class static block" -`; - exports[`range.js format[flow] 1`] = ` "Unexpected token \`.\` (2:4) 1 | const x = diff --git a/tests/format/js/new-target/format.test.js b/tests/format/js/new-target/format.test.js index 85224b552..c862ae267 100644 --- a/tests/format/js/new-target/format.test.js +++ b/tests/format/js/new-target/format.test.js @@ -1,6 +1,5 @@ runFormatTest(import.meta, ["babel", "flow", "typescript"], { errors: { - espree: true, flow: true, hermes: true, }, diff --git a/yarn.lock b/yarn.lock index 14ff0156c..b184b115d 100644 --- a/yarn.lock +++ b/yarn.lock @@ -4690,14 +4690,14 @@ __metadata: languageName: node linkType: hard -"espree@npm:11.1.1, espree@npm:^11.1.1": - version: 11.1.1 - resolution: "espree@npm:11.1.1" +"espree@npm:11.2.0, espree@npm:^11.1.1": + version: 11.2.0 + resolution: "espree@npm:11.2.0" dependencies: acorn: "npm:^8.16.0" acorn-jsx: "npm:^5.3.2" eslint-visitor-keys: "npm:^5.0.1" - checksum: 10/58ecfae40f4e1f2c54a825ff7a50c5f9cda42901468ba93354c13a1eb69aba0f15d68df5822bbcb02058f822214aba7ca24389eee2e6c27bb0cd3a05972606ae + checksum: 10/5cc4233b8f150010c70713669ef8231f07fe9b6391870cfa0a292a07f723ed5c2922064b978e627f7cabf7753280e64c5bde41d3840caaa40946989df7009a51 languageName: node linkType: hard @@ -8443,7 +8443,7 @@ __metadata: eslint-plugin-simple-import-sort: "npm:12.1.1" eslint-plugin-unicorn: "npm:63.0.0" esm-utils: "npm:4.4.2" - espree: "npm:11.1.1" + espree: "npm:11.2.0" fast-glob: "npm:3.3.3" fast-json-stable-stringify: "npm:2.1.0" file-entry-cache: "npm:11.1.2"