summaryrefslogtreecommitdiff
path: root/cli/fmt.rs
AgeCommit message (Collapse)Author
2020-02-27Return non-zero exit code on malformed stdin fmt (#4163)Ryan Dahl
2020-02-26upgrade: dprint 0.7.0 (#4130)Ryan Dahl
* upgrade: dprint 0.7.0 Also make deno fmt less verbose (like cargo fmt)
2020-02-23refactor: use OpError instead of ErrBox for errors in ops (#4058)Bartek Iwańczuk
To better reflect changes in error types in JS from #3662 this PR changes default error type used in ops from "ErrBox" to "OpError". "OpError" is a type that can be sent over to JSON; it has all information needed to construct error in JavaScript. That made "GetErrorKind" trait useless and so it was removed altogether. To provide compatibility with previous use of "ErrBox" an implementation of "From<ErrBox> for OpError" was added, however, it is an escape hatch and ops implementors should strive to use "OpError" directly.
2020-02-17fix(deno test): support directories as arguments (#4011)Bartek Iwańczuk
2020-02-13Clean up fmt flags and path handling (#3988)Ryan Dahl
2020-02-11refactor: Use PathBuf for paths in flag parsing and whitelists (#3955)Nayeem Rahman
* Use PathBuf for DenoSubcommand::Bundle's out_file * Use PathBuf for DenoSubcommand::Format's files * Use PathBuf for DenoSubcommand::Install's dir * Use PathBuf for read/write whitelists
2020-02-09fmt: `deno fmt -` formats stdin and print to stdout (#3920)Kevin (Kun) "Kassimo" Qian
2020-02-03upgrade: dprint 0.3.0-alpha.6Ryan Dahl
2020-01-31chore: upgrade dprint (#3842)Bartek Iwańczuk
2020-01-30Adjust dprint configuration to be closer to prettier (#3824)Ryan Dahl
2020-01-29feat: dprint formatter (#3820)Bartek Iwańczuk
* rewrite fmt_test in Rust, remove tools/fmt_test.py * remove //std/prettier