summaryrefslogtreecommitdiff
path: root/cli/fmt.rs
AgeCommit message (Collapse)Author
2020-11-19refactor(cli): move tooling to cli/tools/ (#8424)Bartek Iwańczuk
This commit moves following tools into a single "tools" module located at "cli/tools/mod.rs": - formatter - linter - test runner - coverage collector - installer - binary upgrader - repl
2020-11-16refactor(cli): rename fs module to fs_util (#8380)Bartek Iwańczuk
This commit renames "fs" module in "cli/" to "fs_util". This is purely cosmetic change; there were a few places which aliased "crate::fs" to "deno_fs" which was very confusing with "fs" module in ops.
2020-11-14fix(fmt, lint): Make sure that target paths are not directory (#8375)Yusuke Tanaka
This commit merges implementations of "collect_files" and "files_in_subtree", leaving only the former. Additionally it was ensured that directories are not yielded from this function.
2020-11-13refactor(cli+core): various cleanups in Rust (#8336)KNnut
2020-11-11fix(cli): don't walk the subdirectory twice when using the `--ignore` flag ↵Akshat Agarwal
(#8040) This commit reworks "collect_files" utility to accept "ignore" parameter which allows to filter out files in a single iteration instead of walking file tree second time to excude "ignored" files.
2020-10-30fix(cli/fmt): Strip "\\?\" prefix when displaying Windows paths (#8135)Nayeem Rahman
2020-10-23docs(cli): update link to dprint-plugin-typescript (#8052)Nikolai Vavilov
2020-10-21refactor(cli): use PathBuf instead of String for lint and fmt subcommands ↵Akshat Agarwal
(#8042)
2020-09-21refactor: use futures and serde_json from deno_core (#7614)Bartek Iwańczuk
2020-09-20fix(fmt,lint): do not print number of checked files when `--quiet` is ↵Yusuke Tanaka
enabled (#7579)
2020-09-18fix(cli/fmt): canonicalize files in current dir (#7508)tokiedokie
2020-09-16refactor(unstable): deno info --json output (#7417)bartOssh
Provide flat JSON structured output. Fix BrokenPipe error when piping out to "head".
2020-09-15refactor: use the 'anyhow' crate instead of 'ErrBox' (#7476)Bert Belder
2020-09-09feat(fmt, lint): show number of checked files (#7312)Yusuke Tanaka
2020-09-08upgrade: dprint-plugin-typescript 0.31.0 (#7381)David Sherret
2020-08-26refactor: remove OpError, use ErrBox everywhere (#7187)Bert Belder
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
2020-08-03fix(cli): add support for non-UTF8 source files (#6789)Maayan Hanin
Fixes: #5542
2020-07-31upgrade: deno_lint, dprint, swc (#6928)Bartek Iwańczuk
This commit upgrades: deno_lint 0.1.20 dprint-plugin-typescript 0.25.0 swc_ecmascript 0.1.0 SWC is no longer reexported from dprint nor deno_lint.
2020-07-30feat(unstable): add "--ignore" flag to deno fmt (#6890)Divy Srivastava
2020-07-11chore: upgrade deno_lint, remove direct dprint dep (#6679)Bartek Iwańczuk
This PR removes direct dependency on dprint-plugin-typescript and swc_ecma_visit. Both of these dependencies have been pushed out to deno_lint crate. This should make it a bit easier to do the upgrades and prevent having conflicting crate requirements.
2020-06-29refactor: util functions take slices instead of heap values (#6547)Valentin Anger
2020-06-17chore: move fmt test to integration tests (#6340)Bartek Iwańczuk
2020-06-12update: deno_lint to v0.1.10 (#6248)Bartek Iwańczuk
* update: deno lint to v0.1.10 * Parallelize "deno lint" subcommand
2020-06-10feat(lint): use default globs, upgrade to v0.1.9 (#6222)Bartek Iwańczuk
This commit: * added default file globs so "deno lint" can be run without arguments (just like "deno fmt") * added test for globs in "deno lint" * upgrade "deno_lint" crate to v0.1.9
2020-06-06Add diff for "deno fmt --check" (#5599)Filippo Rossi
2020-06-05added mjs files for default fmt (#6134)Taisuke Fukuno
2020-06-04Revert "feat: format deno bundle output (#5139)" (#6085)Ryan Dahl
This reverts commit 93cf3bd5341d5985201ea0905280082d5a3310f9.
2020-05-28fix(cli): Handle formatting UTF-8 w/ BOM files (#5881)David Sherret
2020-05-07feat: format deno bundle output (#5139)Yoshiya Hinosawa
2020-05-04feat(fmt): Add `deno-fmt-ignore` and `deno-fmt-ignore-file` comment support ↵David Sherret
(#5075)
2020-04-28Fix stdin not formatting JSX (#4971)David Sherret
2020-04-24fix clippy (#4875)Ryan Dahl
2020-04-23Parallelized deno fmt (#4823)David Sherret
2020-04-19upgrade: dprint 0.13.0 (#4816)David Sherret
2020-04-08Remove panic catch around dprint calls (#4676)Ryan Dahl
dprint seems to be stable enough to not panic on our own source code now.
2020-03-25upgrade: dprint 0.9.5 (#4491)Ryan Dahl
2020-03-11Improve dprint config (#4314)Ryan Dahl
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