0
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-03-03 09:31:22 -05:00

chores(cli/fmt): make --ignore stable (#7922)

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
This commit is contained in:
Divy Srivastava 2020-10-22 22:34:35 +05:30 committed by GitHub
parent 17eaede643
commit d592c128cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 1 additions and 4 deletions

View file

@ -694,7 +694,6 @@ Ignore formatting a file by adding an ignore comment at the top of the file:
.arg(
Arg::with_name("ignore")
.long("ignore")
.requires("unstable")
.takes_value(true)
.use_delimiter(true)
.require_equals(true)

View file

@ -441,7 +441,6 @@ fn fmt_test() {
.current_dir(util::root_path())
.arg("fmt")
.arg(format!("--ignore={}", badly_formatted_str))
.arg("--unstable")
.arg("--check")
.arg(badly_formatted_str)
.spawn()
@ -2237,7 +2236,7 @@ itest!(fmt_check_formatted_files {
});
itest!(fmt_check_ignore {
args: "fmt --check --unstable --ignore=fmt/formatted1.js fmt/",
args: "fmt --check --ignore=fmt/formatted1.js fmt/",
output: "fmt/expected_fmt_check_ignore.out",
exit_code: 0,
});
@ -4053,7 +4052,6 @@ fn fmt_ignore_unexplicit_files() {
let output = util::deno_cmd()
.current_dir(util::root_path())
.arg("fmt")
.arg("--unstable")
.arg("--check")
.arg("--ignore=./")
.stderr(std::process::Stdio::piped())