summaryrefslogtreecommitdiff
path: root/tests/specs/fmt/unstable_component/badly_formatted.svelte
diff options
context:
space:
mode:
authorPig Fang <g-plane@hotmail.com>2024-08-15 04:58:48 +0800
committerGitHub <noreply@github.com>2024-08-14 22:58:48 +0200
commit3a3315cc7f3466ce229f6f150402d5ccf72b3d1d (patch)
treea0299679b2c1eb1cee496905caab380a95f22813 /tests/specs/fmt/unstable_component/badly_formatted.svelte
parent22a834ff5b4b312b8f91be8991f2b495d49fad2f (diff)
feat(fmt): support HTML, Svelte, Vue, Astro and Angular (#25019)
This commit adds capability to format HTML, Svelte, Vue, Astro and Angular files. "--unstable-html" is required to format HTML files, and "--unstable-component" flag is needed to format other formats. These can also be specified in the config file. Close #25015
Diffstat (limited to 'tests/specs/fmt/unstable_component/badly_formatted.svelte')
-rw-r--r--tests/specs/fmt/unstable_component/badly_formatted.svelte10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/specs/fmt/unstable_component/badly_formatted.svelte b/tests/specs/fmt/unstable_component/badly_formatted.svelte
new file mode 100644
index 000000000..3a3cbe9b3
--- /dev/null
+++ b/tests/specs/fmt/unstable_component/badly_formatted.svelte
@@ -0,0 +1,10 @@
+<script lang="ts">
+let a:number
+let b : number
+</script>
+
+<div class:active={ active } > {a+b} </div>
+
+<style>
+.active{}
+</style>