Closed gabeidx closed 3 days ago
Thanks for feedback! I'm investigating this.
I'm going to remove
useTabs
option from pretty_yaml,
That makes sense 💯.
The expectation from a Deno user PoV would be to have the YAML formatted to spec even if the project's fmt
configuration uses tabs.
Version: Deno 1.46.1 (stable, release, aarch64-apple-darwin)
Given an example yaml file, when
deno fmt --use-tabs --unstable-yaml example.yml
is run, a panic occurs with an "invalid indentation" error.After some digging, I've found that the
pretty_yaml
crate does accept auseTabs
config property, so it technically can work with Deno's--use-tabs
flag.Expected Outcome
The formatter should be aware of the project's preferred indentation settings but smart enough to not apply them to YAML files and not panic.