修复在 PhpStorm 中应用 Svelte Prettier 并执行 Reformat File 时出现的错误
对这段代码执行 Reformat File 时, 代码就会出现这样的问题。 <https://github.com/sveltejs/prettier plugin svelte/issues/240 <https://github.com/sveltejs/prettier plugin svelte/issues/
GGAMI
import { View } from '@nativescript/core';
import { NativeViewElementNode } from 'svelte-native/dom';
let view: NativeViewElementNode<View>;
export async function animateOut() {
return view.nativeElement.animate({
opacity: 0,
duration: 300,
});
}
</script>
<gridlayout {...$$restProps} backgroundColor="white" bind:this={view}>
<label class="h-center v-center text-2xl font-bold">
<formattedString>
<span class="fas text-[#3A53FF]" text="" />
<span class="text-pink-400" text=" loading" />
</formattedString>
</label>
</gridlayout>