diff --git a/Cargo.lock b/Cargo.lock index 796bbf0ebc7fb..53708b5f57da8 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -904,7 +904,7 @@ dependencies = [ "cfg-if", "libc", "r-efi", - "wasi 0.14.5+wasi-0.2.4", + "wasi 0.14.7+wasi-0.2.4", ] [[package]] @@ -1196,14 +1196,15 @@ dependencies = [ [[package]] name = "indexmap" -version = "2.11.1" +version = "2.11.3" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "206a8042aec68fa4a62e8d3f7aa4ceb508177d9324faf261e1959e495b7a1921" +checksum = "92119844f513ffa41556430369ab02c295a3578af21cf945caa3e9e0c2481ac3" dependencies = [ "equivalent", "hashbrown 0.15.5", "rayon", "serde", + "serde_core", ] [[package]] @@ -1286,9 +1287,9 @@ dependencies = [ [[package]] name = "js-sys" -version = "0.3.78" +version = "0.3.80" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "0c0b063578492ceec17683ef2f8c5e89121fbd0b172cbc280635ab7567db2738" +checksum = "852f13bec5eba4ba9afbeb93fd7c13fe56147f055939ae21c43a29a0ecb2702e" dependencies = [ "once_cell", "wasm-bindgen", @@ -1296,9 +1297,9 @@ dependencies = [ [[package]] name = "json-strip-comments" -version = "1.0.4" +version = "3.0.1" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b271732a960335e715b6b2ae66a086f115c74eb97360e996d2bd809bfc063bba" +checksum = "c4135b29c84322dbc3327272084360785665452213a576a991b3ac2f63148e82" dependencies = [ "memchr", ] @@ -1676,9 +1677,9 @@ dependencies = [ [[package]] name = "oxc-browserslist" -version = "2.0.16" +version = "2.1.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bd843fdc95833f2faf4251b701a812d488ef35958144af91b9ff540d9fe8ceaa" +checksum = "4ca83f99170f095592784131ed47b6782974c98165ec4da64e90df64bdc2b3cf" dependencies = [ "bincode 2.0.1", "flate2", @@ -1692,23 +1693,24 @@ dependencies = [ [[package]] name = "oxc-miette" -version = "2.4.0" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "31cfb121c9d3e0f9082856927f5cff9594279c91b544f4436e4bc971563caa60" +checksum = "2d5495f6099fa0b25fa25755c1d59ed79ffa64dda80f5366a4cdfc8fc20f5932" dependencies = [ "cfg-if", "owo-colors", "oxc-miette-derive", "textwrap", "thiserror", + "unicode-segmentation", "unicode-width", ] [[package]] name = "oxc-miette-derive" -version = "2.4.0" +version = "2.5.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a6eabb57f935b454fbe0552ea0abaaf9eb0019b5fa05a7bbe7efd5bd8c765085" +checksum = "9dbbc96af6e37c35f2303b2bedbf8ce9cc563e4fbbf7776be6f0803cb0095652" dependencies = [ "proc-macro2", "quote", @@ -2257,13 +2259,14 @@ dependencies = [ [[package]] name = "oxc_resolver" -version = "11.7.2" +version = "11.8.2" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b7faa92a909b5e1a2018babf171a1973e3be4c0a2e29e3337c0cfa3c0ba04ebf" +checksum = "49c4a4d746f42bac28538163952aa66da2f0ea781a0708772d8ad3f6fc066963" dependencies = [ "cfg-if", "indexmap", "json-strip-comments", + "libc", "once_cell", "papaya", "rustc-hash", @@ -2945,9 +2948,9 @@ dependencies = [ [[package]] name = "rustls-webpki" -version = "0.103.5" +version = "0.103.6" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "b5a37813727b78798e53c2bec3f5e8fe12a6d6f8389bf9ca7802add4c9905ad8" +checksum = "8572f3c2cb9934231157b45499fc41e1f58c589fdfb81a844ba873265e80f8eb" dependencies = [ "ring", "rustls-pki-types", @@ -3034,9 +3037,9 @@ checksum = "1bc711410fbe7399f390ca1c3b60ad0f53f80e95c5eb935e52268a0e2cd49acc" [[package]] name = "serde" -version = "1.0.223" +version = "1.0.225" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a505d71960adde88e293da5cb5eda57093379f64e61cf77bf0e6a63af07a7bac" +checksum = "fd6c24dee235d0da097043389623fb913daddf92c76e9f5a1db88607a0bcbd1d" dependencies = [ "serde_core", "serde_derive", @@ -3044,18 +3047,18 @@ dependencies = [ [[package]] name = "serde_core" -version = "1.0.223" +version = "1.0.225" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "20f57cbd357666aa7b3ac84a90b4ea328f1d4ddb6772b430caa5d9e1309bb9e9" +checksum = "659356f9a0cb1e529b24c01e43ad2bdf520ec4ceaf83047b83ddcc2251f96383" dependencies = [ "serde_derive", ] [[package]] name = "serde_derive" -version = "1.0.223" +version = "1.0.225" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "3d428d07faf17e306e699ec1e91996e5a165ba5d6bce5b5155173e91a8a01a56" +checksum = "0ea936adf78b1f766949a4977b91d2f5595825bd6ec079aa9543ad2685fc4516" dependencies = [ "proc-macro2", "quote", @@ -3667,27 +3670,27 @@ checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b" [[package]] name = "wasi" -version = "0.14.5+wasi-0.2.4" +version = "0.14.7+wasi-0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "a4494f6290a82f5fe584817a676a34b9d6763e8d9d18204009fb31dceca98fd4" +checksum = "883478de20367e224c0090af9cf5f9fa85bed63a95c1abf3afc5c083ebc06e8c" dependencies = [ "wasip2", ] [[package]] name = "wasip2" -version = "1.0.0+wasi-0.2.4" +version = "1.0.1+wasi-0.2.4" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "03fa2761397e5bd52002cd7e73110c71af2109aca4e521a9f40473fe685b0a24" +checksum = "0562428422c63773dad2c345a1882263bbf4d65cf3f42e90921f787ef5ad58e7" dependencies = [ "wit-bindgen", ] [[package]] name = "wasm-bindgen" -version = "0.2.101" +version = "0.2.103" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7e14915cadd45b529bb8d1f343c4ed0ac1de926144b746e2710f9cd05df6603b" +checksum = "ab10a69fbd0a177f5f649ad4d8d3305499c42bab9aef2f7ff592d0ec8f833819" dependencies = [ "cfg-if", "once_cell", @@ -3698,9 +3701,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-backend" -version = "0.2.101" +version = "0.2.103" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "e28d1ba982ca7923fd01448d5c30c6864d0a14109560296a162f80f305fb93bb" +checksum = "0bb702423545a6007bbc368fde243ba47ca275e549c8a28617f56f6ba53b1d1c" dependencies = [ "bumpalo", "log", @@ -3712,9 +3715,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro" -version = "0.2.101" +version = "0.2.103" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7c3d463ae3eff775b0c45df9da45d68837702ac35af998361e2c84e7c5ec1b0d" +checksum = "fc65f4f411d91494355917b605e1480033152658d71f722a90647f56a70c88a0" dependencies = [ "quote", "wasm-bindgen-macro-support", @@ -3722,9 +3725,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-macro-support" -version = "0.2.101" +version = "0.2.103" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "7bb4ce89b08211f923caf51d527662b75bdc9c9c7aab40f86dcb9fb85ac552aa" +checksum = "ffc003a991398a8ee604a401e194b6b3a39677b3173d6e74495eb51b82e99a32" dependencies = [ "proc-macro2", "quote", @@ -3735,9 +3738,9 @@ dependencies = [ [[package]] name = "wasm-bindgen-shared" -version = "0.2.101" +version = "0.2.103" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "f143854a3b13752c6950862c906306adb27c7e839f7414cec8fea35beab624c1" +checksum = "293c37f4efa430ca14db3721dfbe48d8c33308096bd44d80ebaa775ab71ba1cf" dependencies = [ "unicode-ident", ] @@ -4057,9 +4060,9 @@ checksum = "271414315aff87387382ec3d271b52d7ae78726f5d44ac98b4f4030c91880486" [[package]] name = "wit-bindgen" -version = "0.45.1" +version = "0.46.0" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "5c573471f125075647d03df72e026074b7203790d41351cd6edc96f46bcccd36" +checksum = "f17a85883d4e6d00e8a97c586de764dabcc06133f7f1d55dce5cdc070ad7fe59" [[package]] name = "writeable" diff --git a/Cargo.toml b/Cargo.toml index f30dffc90dc7d..901ac8c993f15 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -155,6 +155,7 @@ unicode-id-start = "1" # javascript-globals = "1" +json-strip-comments = "3" oxc-browserslist = "2" oxc_index = "3" oxc_resolver = "11" @@ -163,7 +164,7 @@ oxc_sourcemap = "4" # allocator-api2 = "=0.2.21" base64 = "0.22.1" -bitflags = "2.9.1" +bitflags = "2.9.4" bpaf = "0.9.20" # `bumpalo` must be pinned to exactly version 3.19.0. # `Allocator::from_raw_parts` (used in raw transfer) depends on internal implementation details @@ -171,7 +172,7 @@ bpaf = "0.9.20" # This is a temporary situation - we'll replace `bumpalo` with our own allocator. bumpalo = "=3.19.0" compact_str = "0.9.0" -console = "0.16.0" +console = "0.16.1" constcat = "0.6.1" convert_case = "0.8.0" cow-utils = "0.1.3" @@ -188,29 +189,28 @@ hashbrown = { version = "0.16.0", default-features = false } humansize = "2.1.3" icu_segmenter = "2.0.0" ignore = "0.4.23" -insta = "1.43.1" +insta = "1.43.2" itertools = "0.14.0" itoa = "1.0.15" -json-strip-comments = "1.0.4" language-tags = "0.3.2" lazy-regex = "3.4.1" -log = "0.4.27" +log = "0.4.28" markdown = "1.0.0" memchr = "2.7.5" -miette = { package = "oxc-miette", version = "2.4.0", features = ["fancy-no-syscall"] } +miette = { package = "oxc-miette", version = "2.5.0", features = ["fancy-no-syscall"] } mimalloc-safe = "0.1.54" nonmax = "0.5.5" num-bigint = "0.4.6" num-traits = "0.2.19" papaya = "0.2.3" -percent-encoding = "2.3.1" +percent-encoding = "2.3.2" petgraph = { version = "0.8.2", default-features = false } -phf = "0.13.0" -phf_codegen = "0.13.0" +phf = "0.13.1" +phf_codegen = "0.13.1" pico-args = "0.5.0" -prettyplease = "0.2.36" +prettyplease = "0.2.37" project-root = "0.2.2" -rayon = "1.10.0" +rayon = "1.11.0" ropey = "1.6.1" rust-lapper = "1.2.0" saphyr = "0.0.6" @@ -222,11 +222,11 @@ simdutf8 = { version = "0.1.5", features = ["aarch64_neon"] } similar = "2.7.0" similar-asserts = "1.7.0" smallvec = { version = "1.15.1", features = ["union"] } -tempfile = "3.20.0" -tokio = { version = "1.47.0", default-features = false } -tower-lsp-server = "0.22.0" -tracing-subscriber = "0.3.19" -ureq = { version = "3.0.12", default-features = false } +tempfile = "3.22.0" +tokio = { version = "1.47.1", default-features = false } +tower-lsp-server = "0.22.1" +tracing-subscriber = "0.3.20" +ureq = { version = "3.1.2", default-features = false } walkdir = "2.5.0" [workspace.metadata.cargo-shear] diff --git a/crates/oxc_linter/src/snapshots/eslint_no_irregular_whitespace.snap b/crates/oxc_linter/src/snapshots/eslint_no_irregular_whitespace.snap index 9aa9bae946fb0..951a2b0d9bcd3 100644 --- a/crates/oxc_linter/src/snapshots/eslint_no_irregular_whitespace.snap +++ b/crates/oxc_linter/src/snapshots/eslint_no_irregular_whitespace.snap @@ -177,7 +177,7 @@ source: crates/oxc_linter/src/tester.rs ╭─[no_irregular_whitespace.tsx:2:14] 1 │ var any   = 'thing', other   = 'thing'; 2 │ var third   = 'thing'; - · ── + · ─ ╰──── help: Try to remove the irregular whitespace @@ -237,7 +237,7 @@ source: crates/oxc_linter/src/tester.rs ╭─[no_irregular_whitespace.tsx:2:13] 1 │ ` multiline 2 │ template`  - · ── + · ─ ╰──── help: Try to remove the irregular whitespace @@ -245,7 +245,7 @@ source: crates/oxc_linter/src/tester.rs ╭─[no_irregular_whitespace.tsx:2:4] 1 │ ` template` 2 │   - · ── + · ─ ╰──── help: Try to remove the irregular whitespace @@ -253,7 +253,7 @@ source: crates/oxc_linter/src/tester.rs ╭─[no_irregular_whitespace.tsx:3:4] 2 │ template` 3 │   - · ── + · ─ ╰──── help: Try to remove the irregular whitespace @@ -281,7 +281,7 @@ source: crates/oxc_linter/src/tester.rs ⚠ eslint(no-irregular-whitespace): Unexpected irregular whitespace ╭─[no_irregular_whitespace.tsx:1:12] 1 │ var foo = bar; - · ─ + · ─ ╰──── help: Try to remove the irregular whitespace @@ -295,7 +295,7 @@ source: crates/oxc_linter/src/tester.rs ⚠ eslint(no-irregular-whitespace): Unexpected irregular whitespace ╭─[no_irregular_whitespace.tsx:1:12] 1 │ var foo = bar; - · ─ + · ─ ╰──── help: Try to remove the irregular whitespace @@ -309,7 +309,7 @@ source: crates/oxc_linter/src/tester.rs ⚠ eslint(no-irregular-whitespace): Unexpected irregular whitespace ╭─[no_irregular_whitespace.tsx:1:13] 1 │ var foo = bar; - · ─ + · ─ ╰──── help: Try to remove the irregular whitespace @@ -323,7 +323,7 @@ source: crates/oxc_linter/src/tester.rs ⚠ eslint(no-irregular-whitespace): Unexpected irregular whitespace ╭─[no_irregular_whitespace.tsx:1:15] 1 │ var foo = bar ; - · ─ + · ─ ╰──── help: Try to remove the irregular whitespace @@ -376,7 +376,7 @@ source: crates/oxc_linter/src/tester.rs ╭─[no_irregular_whitespace.tsx:2:10] 1 │ var foo = 2 │ bar - · ─ + · ─ 3 │ ; ╰──── help: Try to remove the irregular whitespace @@ -385,7 +385,7 @@ source: crates/oxc_linter/src/tester.rs ╭─[no_irregular_whitespace.tsx:2:11] 1 │ var foo = 2 │ bar - · ─ + · ─ 3 │ ; ╰──── help: Try to remove the irregular whitespace diff --git a/crates/oxc_linter/src/snapshots/eslint_no_misleading_character_class.snap b/crates/oxc_linter/src/snapshots/eslint_no_misleading_character_class.snap index c2960e12e5eda..fd790530c487a 100644 --- a/crates/oxc_linter/src/snapshots/eslint_no_misleading_character_class.snap +++ b/crates/oxc_linter/src/snapshots/eslint_no_misleading_character_class.snap @@ -106,13 +106,13 @@ source: crates/oxc_linter/src/tester.rs ⚠ eslint(no-misleading-character-class): Unexpected combining class in character class. ╭─[no_misleading_character_class.tsx:1:10] 1 │ var r = /[❇️]/ - · ─── + · ──── ╰──── ⚠ eslint(no-misleading-character-class): Unexpected combining class in character class. ╭─[no_misleading_character_class.tsx:1:10] 1 │ var r = /[❇️]/u - · ─── + · ──── ╰──── ⚠ eslint(no-misleading-character-class): Unexpected combining class in character class. @@ -136,13 +136,13 @@ source: crates/oxc_linter/src/tester.rs ⚠ eslint(no-misleading-character-class): Unexpected surrogate pair in character class. ╭─[no_misleading_character_class.tsx:1:10] 1 │ var r = /[👶🏻]/ - · ────── + · ──── ╰──── ⚠ eslint(no-misleading-character-class): Unexpected emoji modifier in character class. ╭─[no_misleading_character_class.tsx:1:10] 1 │ var r = /[👶🏻]/u - · ────── + · ──── ╰──── ⚠ eslint(no-misleading-character-class): Unexpected emoji modifier in character class. @@ -196,43 +196,43 @@ source: crates/oxc_linter/src/tester.rs ⚠ eslint(no-misleading-character-class): Unexpected joined character sequence in character class. ╭─[no_misleading_character_class.tsx:1:10] 1 │ var r = /[👨‍👩‍👦]/ - · ──────── + · ──── ╰──── ⚠ eslint(no-misleading-character-class): Unexpected surrogate pair in character class. ╭─[no_misleading_character_class.tsx:1:10] 1 │ var r = /[👨‍👩‍👦]/ - · ──────── + · ──── ╰──── ⚠ eslint(no-misleading-character-class): Unexpected joined character sequence in character class. ╭─[no_misleading_character_class.tsx:1:10] 1 │ var r = /[👨‍👩‍👦]/u - · ──────── + · ──── ╰──── ⚠ eslint(no-misleading-character-class): Unexpected joined character sequence in character class. ╭─[no_misleading_character_class.tsx:1:10] 1 │ var r = /[👩‍👦]/u - · ────── + · ──── ╰──── ⚠ eslint(no-misleading-character-class): Unexpected joined character sequence in character class. ╭─[no_misleading_character_class.tsx:1:10] 1 │ var r = /[👩‍👦][👩‍👦]/u - · ──────────── + · ──────── ╰──── ⚠ eslint(no-misleading-character-class): Unexpected joined character sequence in character class. ╭─[no_misleading_character_class.tsx:1:10] 1 │ var r = /[👨‍👩‍👦]foo[👨‍👩‍👦]/u - · ─────────────────── + · ─────────── ╰──── ⚠ eslint(no-misleading-character-class): Unexpected joined character sequence in character class. ╭─[no_misleading_character_class.tsx:1:10] 1 │ var r = /[👨‍👩‍👦👩‍👦]/u - · ──────────── + · ────── ╰──── ⚠ eslint(no-misleading-character-class): Unexpected joined character sequence in character class. @@ -412,13 +412,13 @@ source: crates/oxc_linter/src/tester.rs ⚠ eslint(no-misleading-character-class): Unexpected combining class in character class. ╭─[no_misleading_character_class.tsx:1:21] 1 │ var r = new RegExp("[❇️]", "") - · ─── + · ──── ╰──── ⚠ eslint(no-misleading-character-class): Unexpected combining class in character class. ╭─[no_misleading_character_class.tsx:1:21] 1 │ var r = new RegExp("[❇️]", "u") - · ─── + · ──── ╰──── ⚠ eslint(no-misleading-character-class): Unexpected combining class in character class. @@ -460,13 +460,13 @@ source: crates/oxc_linter/src/tester.rs ⚠ eslint(no-misleading-character-class): Unexpected surrogate pair in character class. ╭─[no_misleading_character_class.tsx:1:21] 1 │ var r = new RegExp("[👶🏻]", "") - · ────── + · ──── ╰──── ⚠ eslint(no-misleading-character-class): Unexpected emoji modifier in character class. ╭─[no_misleading_character_class.tsx:1:21] 1 │ var r = new RegExp("[👶🏻]", "u") - · ────── + · ──── ╰──── ⚠ eslint(no-misleading-character-class): Unexpected emoji modifier in character class. @@ -484,7 +484,7 @@ source: crates/oxc_linter/src/tester.rs ⚠ eslint(no-misleading-character-class): Unexpected surrogate pair in character class. ╭─[no_misleading_character_class.tsx:1:17] 1 │ var r = RegExp(` 👍[👍]`) - · ────────────────── + · ──────────── ╰──── ⚠ eslint(no-misleading-character-class): Unexpected surrogate pair in character class. @@ -562,43 +562,43 @@ source: crates/oxc_linter/src/tester.rs ⚠ eslint(no-misleading-character-class): Unexpected joined character sequence in character class. ╭─[no_misleading_character_class.tsx:1:21] 1 │ var r = new RegExp("[👨‍👩‍👦]", "") - · ──────── + · ──── ╰──── ⚠ eslint(no-misleading-character-class): Unexpected surrogate pair in character class. ╭─[no_misleading_character_class.tsx:1:21] 1 │ var r = new RegExp("[👨‍👩‍👦]", "") - · ──────── + · ──── ╰──── ⚠ eslint(no-misleading-character-class): Unexpected joined character sequence in character class. ╭─[no_misleading_character_class.tsx:1:21] 1 │ var r = new RegExp("[👨‍👩‍👦]", "u") - · ──────── + · ──── ╰──── ⚠ eslint(no-misleading-character-class): Unexpected joined character sequence in character class. ╭─[no_misleading_character_class.tsx:1:21] 1 │ var r = new RegExp("[👩‍👦]", "u") - · ────── + · ──── ╰──── ⚠ eslint(no-misleading-character-class): Unexpected joined character sequence in character class. ╭─[no_misleading_character_class.tsx:1:21] 1 │ var r = new RegExp("[👩‍👦][👩‍👦]", "u") - · ──────────── + · ──────── ╰──── ⚠ eslint(no-misleading-character-class): Unexpected joined character sequence in character class. ╭─[no_misleading_character_class.tsx:1:21] 1 │ var r = new RegExp("[👨‍👩‍👦]foo[👨‍👩‍👦]", "u") - · ─────────────────── + · ─────────── ╰──── ⚠ eslint(no-misleading-character-class): Unexpected joined character sequence in character class. ╭─[no_misleading_character_class.tsx:1:21] 1 │ var r = new RegExp("[👨‍👩‍👦👩‍👦]", "u") - · ──────────── + · ────── ╰──── ⚠ eslint(no-misleading-character-class): Unexpected joined character sequence in character class. @@ -616,13 +616,13 @@ source: crates/oxc_linter/src/tester.rs ⚠ eslint(no-misleading-character-class): Unexpected combining class in character class. ╭─[no_misleading_character_class.tsx:1:32] 1 │ var r = new globalThis.RegExp("[❇️]", "") - · ─── + · ──── ╰──── ⚠ eslint(no-misleading-character-class): Unexpected emoji modifier in character class. ╭─[no_misleading_character_class.tsx:1:32] 1 │ var r = new globalThis.RegExp("[👶🏻]", "u") - · ────── + · ──── ╰──── ⚠ eslint(no-misleading-character-class): Unexpected surrogate pair in character class. @@ -718,7 +718,7 @@ source: crates/oxc_linter/src/tester.rs ⚠ eslint(no-misleading-character-class): Unexpected emoji modifier in character class. ╭─[no_misleading_character_class.tsx:1:10] 1 │ var r = /[[👶🏻]]/v - · ──────── + · ────── ╰──── ⚠ eslint(no-misleading-character-class): Unexpected combining class in character class. @@ -766,7 +766,7 @@ source: crates/oxc_linter/src/tester.rs ⚠ eslint(no-misleading-character-class): Unexpected combining class in character class. ╭─[no_misleading_character_class.tsx:1:9] 1 │ RegExp('[\❇️]') - · ──── + · ───── ╰──── ⚠ eslint(no-misleading-character-class): Unexpected surrogate pair in character class. diff --git a/crates/oxc_linter/src/snapshots/eslint_no_useless_escape.snap b/crates/oxc_linter/src/snapshots/eslint_no_useless_escape.snap index c53f61eb20fb1..5ca00c0839ecd 100644 --- a/crates/oxc_linter/src/snapshots/eslint_no_useless_escape.snap +++ b/crates/oxc_linter/src/snapshots/eslint_no_useless_escape.snap @@ -437,14 +437,14 @@ source: crates/oxc_linter/src/tester.rs ⚠ eslint(no-useless-escape): Unnecessary escape character '\u{85}' ╭─[no_useless_escape.tsx:1:40] 1 │ var stringLiteralWithNextLine = "line 1\…line 2"; - · ─ + · ── ╰──── help: Replace `\…` with `…`. ⚠ eslint(no-useless-escape): Unnecessary escape character '\u{85}' ╭─[no_useless_escape.tsx:1:40] 1 │ var stringLiteralWithNextLine = `line 1\…line 2`; - · ─ + · ── ╰──── help: Replace `\…` with `…`. diff --git a/crates/oxc_linter/src/snapshots/eslint_prefer_numeric_literals.snap b/crates/oxc_linter/src/snapshots/eslint_prefer_numeric_literals.snap index 01d4edf57fd39..5476f9cf6d113 100644 --- a/crates/oxc_linter/src/snapshots/eslint_prefer_numeric_literals.snap +++ b/crates/oxc_linter/src/snapshots/eslint_prefer_numeric_literals.snap @@ -64,7 +64,7 @@ source: crates/oxc_linter/src/tester.rs ⚠ eslint(prefer-numeric-literals): Use hexadecimal literals instead of parseInt(). ╭─[prefer_numeric_literals.tsx:1:1] 1 │ parseInt('1️⃣3️⃣3️⃣7️⃣', 16); - · ──────────────────── + · ──────────────────────── ╰──── ⚠ eslint(prefer-numeric-literals): Use octal literals instead of parseInt(). @@ -88,7 +88,7 @@ source: crates/oxc_linter/src/tester.rs ⚠ eslint(prefer-numeric-literals): Use hexadecimal literals instead of parseInt(). ╭─[prefer_numeric_literals.tsx:1:1] 1 │ Number.parseInt('1️⃣3️⃣3️⃣7️⃣', 16); - · ─────────────────────────── + · ─────────────────────────────── ╰──── ⚠ eslint(prefer-numeric-literals): Use binary literals instead of parseInt(). diff --git a/crates/oxc_linter/src/snapshots/eslint_prefer_object_has_own.snap b/crates/oxc_linter/src/snapshots/eslint_prefer_object_has_own.snap index 41fb0fa9e8a15..7bf5f6d0ac8d8 100644 --- a/crates/oxc_linter/src/snapshots/eslint_prefer_object_has_own.snap +++ b/crates/oxc_linter/src/snapshots/eslint_prefer_object_has_own.snap @@ -234,6 +234,6 @@ source: crates/oxc_linter/src/tester.rs ⚠ eslint(prefer-object-has-own): Disallow use of `Object.prototype.hasOwnProperty.call()` and prefer use of `Object.hasOwn()`. ╭─[prefer_object_has_own.tsx:1:3] 1 │ …Object.prototype.hasOwnProperty.call(C,x); - · ───────────────────────────────────────── + · ───────────────────────────────────────── ╰──── help: Replace `Object.prototype.hasOwnProperty.call` with ` Object.hasOwn`. diff --git a/crates/oxc_linter/src/snapshots/eslint_prefer_template.snap b/crates/oxc_linter/src/snapshots/eslint_prefer_template.snap index d38f60525fba4..e8a95eba59fa5 100644 --- a/crates/oxc_linter/src/snapshots/eslint_prefer_template.snap +++ b/crates/oxc_linter/src/snapshots/eslint_prefer_template.snap @@ -214,7 +214,7 @@ source: crates/oxc_linter/src/tester.rs ⚠ eslint(prefer-template): Unexpected string concatenation. ╭─[prefer_template.tsx:1:1] 1 │ foo + '8' - · ───────── + · ────────── ╰──── help: Use template literals instead of string concatenation. @@ -228,7 +228,7 @@ source: crates/oxc_linter/src/tester.rs ⚠ eslint(prefer-template): Unexpected string concatenation. ╭─[prefer_template.tsx:1:1] 1 │ foo + '' - · ──────── + · ───────── ╰──── help: Use template literals instead of string concatenation. diff --git a/crates/oxc_linter/src/snapshots/react_jsx_curly_brace_presence.snap b/crates/oxc_linter/src/snapshots/react_jsx_curly_brace_presence.snap index 6ae0c1d33fce3..f102779c519db 100644 --- a/crates/oxc_linter/src/snapshots/react_jsx_curly_brace_presence.snap +++ b/crates/oxc_linter/src/snapshots/react_jsx_curly_brace_presence.snap @@ -194,8 +194,8 @@ source: crates/oxc_linter/src/tester.rs ⚠ eslint-plugin-react(jsx-curly-brace-presence): Curly braces are required here. ╭─[jsx_curly_brace_presence.tsx:1:14] 1 │ foo bar - · ────┬──── - · ╰── Wrap this value in curly braces + · ─────┬──── + · ╰── Wrap this value in curly braces ╰──── help: Wrap this value in curly braces diff --git a/crates/oxc_linter/src/snapshots/typescript_consistent_type_definitions.snap b/crates/oxc_linter/src/snapshots/typescript_consistent_type_definitions.snap index 5cca6defdcf60..b0489c1b8f04e 100644 --- a/crates/oxc_linter/src/snapshots/typescript_consistent_type_definitions.snap +++ b/crates/oxc_linter/src/snapshots/typescript_consistent_type_definitions.snap @@ -150,27 +150,27 @@ source: crates/oxc_linter/src/tester.rs ⚠ typescript-eslint(consistent-type-definitions): Use an `interface` instead of a `type` ╭─[consistent_type_definitions.tsx:1:10] 1 │ declare…type S={} - · ──── + · ──── ╰──── help: Use an `interface` instead of a `type` ⚠ typescript-eslint(consistent-type-definitions): Use an `type` instead of a `interface` ╭─[consistent_type_definitions.tsx:1:10] 1 │ declare…interface S {} - · ───────── + · ───────── ╰──── help: Use an `type` instead of a `interface` ⚠ typescript-eslint(consistent-type-definitions): Use an `interface` instead of a `type` ╭─[consistent_type_definitions.tsx:1:17] 1 │ export declare…type S={} - · ──── + · ──── ╰──── help: Use an `interface` instead of a `type` ⚠ typescript-eslint(consistent-type-definitions): Use an `type` instead of a `interface` ╭─[consistent_type_definitions.tsx:1:17] 1 │ export declare…interface S {} - · ───────── + · ───────── ╰──── help: Use an `type` instead of a `interface` diff --git a/tasks/coverage/snapshots/parser_babel.snap b/tasks/coverage/snapshots/parser_babel.snap index 921ab550a9390..81fb167d026a4 100644 --- a/tasks/coverage/snapshots/parser_babel.snap +++ b/tasks/coverage/snapshots/parser_babel.snap @@ -2169,7 +2169,7 @@ Expect to Parse: tasks/coverage/babel/packages/babel-parser/test/fixtures/typesc × Unexpected token ╭─[babel/packages/babel-parser/test/fixtures/core/uncategorised/436/input.js:2:1] 1 │ ] - · ─ + · ─ ╰──── × Unexpected token @@ -2182,7 +2182,7 @@ Expect to Parse: tasks/coverage/babel/packages/babel-parser/test/fixtures/typesc × Unexpected token ╭─[babel/packages/babel-parser/test/fixtures/core/uncategorised/438/input.js:3:1] 2 │ ] - · ─ + · ─ ╰──── × Unexpected token @@ -2195,7 +2195,7 @@ Expect to Parse: tasks/coverage/babel/packages/babel-parser/test/fixtures/typesc × Unexpected token ╭─[babel/packages/babel-parser/test/fixtures/core/uncategorised/440/input.js:3:1] 2 │ ] - · ─ + · ─ ╰──── × Unterminated regular expression @@ -2228,7 +2228,7 @@ Expect to Parse: tasks/coverage/babel/packages/babel-parser/test/fixtures/typesc × Unexpected token ╭─[babel/packages/babel-parser/test/fixtures/core/uncategorised/444/input.js:3:3] 2 │ */] - · ─ + · ─ ╰──── × Unexpected token @@ -11174,7 +11174,7 @@ Expect to Parse: tasks/coverage/babel/packages/babel-parser/test/fixtures/typesc × Unexpected token ╭─[babel/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0156/input.js:3:1] 2 │ ] - · ─ + · ─ ╰──── × Unterminated regular expression @@ -11207,7 +11207,7 @@ Expect to Parse: tasks/coverage/babel/packages/babel-parser/test/fixtures/typesc × Unexpected token ╭─[babel/packages/babel-parser/test/fixtures/esprima/invalid-syntax/migrated_0160/input.js:3:3] 2 │ */] - · ─ + · ─ ╰──── × Unexpected token diff --git a/tasks/coverage/snapshots/parser_test262.snap b/tasks/coverage/snapshots/parser_test262.snap index 15226cc59581a..f72c08b0a7a8d 100644 --- a/tasks/coverage/snapshots/parser_test262.snap +++ b/tasks/coverage/snapshots/parser_test262.snap @@ -21411,7 +21411,7 @@ Expect to Parse: tasks/coverage/test262/test/annexB/language/expressions/assignm × Expected a semicolon or an implicit semicolon after a statement, but found none ╭─[test262/test/language/line-terminators/invalid-comment-single-cr.js:18:6] 17 │ // this text is not included in the single-line comment that precedes it - · ▲ + · ▲ ╰──── help: Try insert a semicolon here @@ -21441,14 +21441,14 @@ Expect to Parse: tasks/coverage/test262/test/annexB/language/expressions/assignm ╭─[test262/test/language/line-terminators/invalid-regexp-cr.js:18:1] 17 │ 18 │ / / - · ─ + · ── ╰──── × Unexpected token ╭─[test262/test/language/line-terminators/invalid-regexp-cr.js:18:1] 17 │ 18 │ / / - · ─── + · ──── ╰──── × Unterminated regular expression @@ -21498,7 +21498,7 @@ Expect to Parse: tasks/coverage/test262/test/annexB/language/expressions/assignm ╭─[test262/test/language/line-terminators/invalid-string-cr.js:17:1] 16 │ 17 │ ' ' - · ─ + · ── ╰──── × Unterminated string diff --git a/tasks/coverage/snapshots/parser_typescript.snap b/tasks/coverage/snapshots/parser_typescript.snap index bb03c60f6f639..67a2d9591a633 100644 --- a/tasks/coverage/snapshots/parser_typescript.snap +++ b/tasks/coverage/snapshots/parser_typescript.snap @@ -11818,7 +11818,7 @@ Expect to Parse: tasks/coverage/typescript/tests/cases/conformance/parser/ecmasc ╭─[typescript/tests/cases/compiler/regularExpressionCharacterClassRangeOrder.ts:7:8] 6 │ const regexes: RegExp[] = [ 7 │ /[𝘈-𝘡][𝘡-𝘈]/, - · ── + · ─ 8 │ /[𝘈-𝘡][𝘡-𝘈]/u, ╰──── @@ -11826,7 +11826,7 @@ Expect to Parse: tasks/coverage/typescript/tests/cases/conformance/parser/ecmasc ╭─[typescript/tests/cases/compiler/regularExpressionCharacterClassRangeOrder.ts:8:19] 7 │ /[𝘈-𝘡][𝘡-𝘈]/, 8 │ /[𝘈-𝘡][𝘡-𝘈]/u, - · ── + · ─ 9 │ /[𝘈-𝘡][𝘡-𝘈]/v, ╰──── @@ -11834,7 +11834,7 @@ Expect to Parse: tasks/coverage/typescript/tests/cases/conformance/parser/ecmasc ╭─[typescript/tests/cases/compiler/regularExpressionCharacterClassRangeOrder.ts:9:15] 8 │ /[𝘈-𝘡][𝘡-𝘈]/u, 9 │ /[𝘈-𝘡][𝘡-𝘈]/v, - · ─── + · ─ 10 │ ╰────