summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDivy Srivastava <dj.srivastava23@gmail.com>2020-10-22 22:34:35 +0530
committerGitHub <noreply@github.com>2020-10-22 19:04:35 +0200
commitd592c128cf42852d2ccffc45574761fd78de8fa7 (patch)
tree735ffb52c7ef6157eebff05eed8bda87cdbc267c
parent17eaede6438ee62416468815621f19cc0567989c (diff)
chores(cli/fmt): make --ignore stable (#7922)
Co-authored-by: Bartek IwaƄczuk <biwanczuk@gmail.com>
-rw-r--r--cli/flags.rs1
-rw-r--r--cli/tests/integration_tests.rs4
2 files changed, 1 insertions, 4 deletions
diff --git a/cli/flags.rs b/cli/flags.rs
index 07707ae6c..e0eae867c 100644
--- a/cli/flags.rs
+++ b/cli/flags.rs
@@ -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)
diff --git a/cli/tests/integration_tests.rs b/cli/tests/integration_tests.rs
index 8956d3f7b..26772338c 100644
--- a/cli/tests/integration_tests.rs
+++ b/cli/tests/integration_tests.rs
@@ -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())