deno
deno copied to clipboard
deno fmt: Indentation of script tag in component files (svelte/vue)
As of Deno deno 2.0.0-rc.6, deno fmt --unstable-component indents
<script lang="ts">
-import { Button } from "$lib/components/ui/button"
+ import { Button } from "$lib/components/ui/button"
It is quite common in Vue and Svelte ecosystem not to indent
I'd like to propose to follow dprint defaults and, if it zen of Deno allows, expose option to configure it.
Formatters like prettier with prettier-plugin-svelte generally use indentation in the script tag. Definitely would be better to make it configurable.