diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2024-09-23 17:01:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-23 18:01:04 +0200 |
commit | a7ac89935b092f86245ce0370042f4bef14ad82d (patch) | |
tree | 01a3cba6b7f83c65e0318a8e7eef69d46a7f82ed /cli/args/mod.rs | |
parent | be13da5d8d08c105e73bc966f681a02b863903d1 (diff) |
feat(fmt): stabilize CSS, HTML and YAML formatters (#25753)
This commits stabilizes CSS, HTML and YAML formatters
in `deno fmt`.
It is no longer required to use either of these flags:
- `--unstable-css`
- `--unstable-html`
- `--unstable-yaml`
Or these `unstable` options in the config file:
- `fmt-css`
- `fmt-html`
- `html-yaml`
Diffstat (limited to 'cli/args/mod.rs')
-rw-r--r-- | cli/args/mod.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/cli/args/mod.rs b/cli/args/mod.rs index c4dda95ce..cec1b53b2 100644 --- a/cli/args/mod.rs +++ b/cli/args/mod.rs @@ -281,10 +281,7 @@ impl BenchOptions { #[derive(Clone, Debug, Default, PartialEq, Eq, Hash)] pub struct UnstableFmtOptions { - pub css: bool, - pub html: bool, pub component: bool, - pub yaml: bool, } #[derive(Clone, Debug)] @@ -317,10 +314,7 @@ impl FmtOptions { Self { options: resolve_fmt_options(fmt_flags, fmt_config.options), unstable: UnstableFmtOptions { - css: unstable.css || fmt_flags.unstable_css, - html: unstable.html || fmt_flags.unstable_html, component: unstable.component || fmt_flags.unstable_component, - yaml: unstable.yaml || fmt_flags.unstable_yaml, }, files: fmt_config.files, } @@ -1301,10 +1295,7 @@ impl CliOptions { pub fn resolve_config_unstable_fmt_options(&self) -> UnstableFmtOptions { let workspace = self.workspace(); UnstableFmtOptions { - css: workspace.has_unstable("fmt-css"), - html: workspace.has_unstable("fmt-html"), component: workspace.has_unstable("fmt-component"), - yaml: workspace.has_unstable("fmt-yaml"), } } @@ -1609,10 +1600,7 @@ impl CliOptions { "sloppy-imports", "byonm", "bare-node-builtins", - "fmt-css", - "fmt-html", "fmt-component", - "fmt-yaml", ]); // add more unstable flags to the same vector holding granular flags all_valid_unstable_flags.append(&mut another_unstable_flags); |