Skip to content

Resolve import to declared module? #2068

Closed as not planned
Closed as not planned
@pikeas

Description

@pikeas

SvelteKit has various imports of the form:

import {foo} from "$app/bar"

Everything under $app/* is defined in node_modules/@sveltejs/kit/types/ambient-modules.d.ts:

declare module '$app/env' {
    ...
}

How can I configure eslint-plugin-import so that it resolves $app/* to these definitions? Typescript resolution works, so I'm not sure why ESLint is unable to resolve them.

Related: #1509

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions