Skip to content

Compatibility with Svelte #71

@pikeas

Description

@pikeas

sveltejs/eslint-plugin-svelte3#75

When using this plugin with eslint-plugin-svelte3, this code:

<script>
    import {dev} from "$app/env" // eslint-disable-line import/no-unresolved
    import CookieConsent from "$lib/layout/CookieConsent.svelte"
    import Footer from "$lib/layout/Footer.svelte"
    import Nav from "$lib/layout/Nav.svelte"

    import "../app.css"
</script>

Becomes:

<script>
    import "../app.css"

import {dev} from "$app/env" // eslint-disable-line import/no-unresolved
import CookieConsent from "$lib/layout/CookieConsent.svelte"
import Footer from "$lib/layout/Footer.svelte"
import Nav from "$lib/layout/Nav.svelteport "../app.css"
</script>

Is this fixable on the simple-import-sort side of things?

I'd also be happy to fix manually if there were an option to disable autofix.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions