Skip to content

Inline typescript types in svelte markup break prettier autoformatting #485

@hmprt

Description

@hmprt

As title says. The following markup breaks prettier on the file:

{#each keys as key}
	{@const setting = device.settings[tab][key] as ConfigurableSetting}
	<SetConfig {setting} {key} />
{/each}

but this markup does:

{#each keys as key}
	{@const setting = device.settings[tab][key]}
	<SetConfig {setting} {key} />
{/each}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions