mpellegrini / fullstack-typescript-monorepo-starter

1 stars 1 forks source link

fix(toolchain/eslint-config): svelte attr sorting #158

Closed mpellegrini closed 1 month ago

mpellegrini commented 1 month ago

Was using perfectionist's eslint rule to sort svelte attributes but this was causing conflicts with prettier svelte plugin. Could not disable sorting in prettier so decided to revert back to the sorting rules in svelte's eslint plugin which doesn't seem to conflict with svelte's prettier sorting.

This was an example of the issue inside a svelte component: <svelte:element class="foo" this={undefined} />