oxc/tasks/prettier_conformance/Cargo.toml
Yuji Sugiura 8e3eed7562
refactor(prettier): Update tasks/prettier to correctly handle snapshots (#8337)
I refactored the code in `tasks/prettier_conformance` primarily to make
the output more readable when using `--filter`.

But I also discovered that our previous implementation did not correctly
handle Prettier's behavior of adding a blank line at the EOF.

In addition, I resolved a problem where test specs that used patterns
like `runFormatTest(_, parsers)` were unable to locate the correct
snapshot output.

As a result, compatibility has also improved slightly. 😉

---------

Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2025-01-08 17:10:30 +08:00

36 lines
762 B
TOML

[package]
name = "oxc_prettier_conformance"
version = "0.0.0"
authors.workspace = true
edition.workspace = true
homepage.workspace = true
keywords.workspace = true
license.workspace = true
publish = false
repository.workspace = true
description.workspace = true
[lints]
workspace = true
[lib]
doctest = false
[[bin]]
name = "oxc_prettier_conformance"
path = "src/main.rs"
test = false
doctest = false
[dependencies]
oxc_allocator = { workspace = true }
oxc_ast = { workspace = true }
oxc_parser = { workspace = true }
oxc_prettier = { workspace = true }
oxc_span = { workspace = true }
oxc_tasks_common = { workspace = true }
cow-utils = { workspace = true }
pico-args = { workspace = true }
rustc-hash = { workspace = true }
walkdir = { workspace = true }