From a7ac89935b092f86245ce0370042f4bef14ad82d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Mon, 23 Sep 2024 17:01:04 +0100 Subject: 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` --- tests/integration/lsp_tests.rs | 21 --------------------- 1 file changed, 21 deletions(-) (limited to 'tests/integration') diff --git a/tests/integration/lsp_tests.rs b/tests/integration/lsp_tests.rs index f2c40f8ea..2d8d88b27 100644 --- a/tests/integration/lsp_tests.rs +++ b/tests/integration/lsp_tests.rs @@ -10597,13 +10597,6 @@ fn lsp_format_markdown() { fn lsp_format_html() { let context = TestContextBuilder::new().use_temp_cwd().build(); let temp_dir = context.temp_dir(); - temp_dir.write( - "deno.json", - json!({ - "unstable": ["fmt-html"], - }) - .to_string(), - ); let html_file = source_file(temp_dir.path().join("file.html"), " "); let mut client = context.new_lsp_command().build(); @@ -10644,13 +10637,6 @@ fn lsp_format_html() { fn lsp_format_css() { let context = TestContextBuilder::new().use_temp_cwd().build(); let temp_dir = context.temp_dir(); - temp_dir.write( - "deno.json", - json!({ - "unstable": ["fmt-css"], - }) - .to_string(), - ); let css_file = source_file(temp_dir.path().join("file.css"), " foo {}"); let mut client = context.new_lsp_command().build(); client.initialize_default(); @@ -10690,13 +10676,6 @@ fn lsp_format_css() { fn lsp_format_yaml() { let context = TestContextBuilder::new().use_temp_cwd().build(); let temp_dir = context.temp_dir(); - temp_dir.write( - "deno.json", - json!({ - "unstable": ["fmt-yaml"], - }) - .to_string(), - ); let yaml_file = source_file(temp_dir.path().join("file.yaml"), " foo: 1"); let mut client = context.new_lsp_command().build(); client.initialize_default(); -- cgit v1.2.3