prettier-plugin-sort-imports-svelte-repro Svelte Themes

Prettier Plugin Sort Imports Svelte Repro

Minimal repro for prettier plugin import sort with svelte components

Prettier plugin sort imports minimal repro

Reproduce with npm run prettier

Before:

<script lang="ts">
  import poop from './poop';
  import noop from './noop';

  // Comment one
  let someProp: string = "";

  // Comment two
  let anotherProp: string = "";
</script>

<main />

After:

<script lang="ts">
  import noop from "./noop";
  import poop from "./poop";
  ';

  // Comme
  let someProp: string = "";
  ";

  // Comme
  let anotherProp: string = "";
</script>

<main />

Top categories

Loading Svelte Themes