trivago / prettier-plugin-sort-imports

A prettier plugin to sort imports in typescript and javascript files by the provided RegEx order.
Apache License 2.0
3.28k stars 129 forks source link

Svelte import sort #284

Closed secondfry closed 7 months ago

secondfry commented 7 months ago

It does not help with <script lang="ts">. I will fix it and update the PR.

secondfry commented 7 months ago

Apparently I was mistaken – I thought that plugin does not work due to the fact that it didn't sort imports in such scenario:

import A from '../A.svelte';

import './app.css';

import B from 'svelte';

Plugin does indeed work and splits imports into chunks and does not sort around side effect imports. Thus this PR is unneeded. Closing it.

Zequez commented 1 month ago

I'm sorry, @secondfry I don't get why did you close the PR, Svelte is currently still not supported; what do you mean the PR is unneeded?

secondfry commented 1 month ago

@Zequez

I've closed my PR because upon additional inspection I didn't need any of these. What I've needed was an update to recent SvelteKit and proper eslint plugins.

hungdoansy commented 3 weeks ago

Hi @secondfry , can you comment your ESLint config for auto sorting impots? thanks