Skip to content

Integrating the "Zero-effort type safety" with typescript-eslint #2073

@pawelblaszczyk5

Description

@pawelblaszczyk5

Hello,
I'm not 100% sure is it the correct place to ask/report it, but it was the best that I could think of 😃 Sorry in advance if that's not the case and I'd be grateful for pointing me a better place!

Currently in SvelteKit thanks to the LSP etc., we can use the auto types for stuff like data and load functions. However, I'm using typescript-eslint with lint rules that require type information. As far as this plugin is concerned these auto types don't exist so it throws a lot of errors. Is it possible to somehow integrate it with each other or do I need to manually add the typings from ./$types to satisfy the typescript-eslint if I want to use it? Here is my repository where the error occurs: https://github.com/pawelblaszczyk5/pawelblaszczyk.dev/tree/cd33d2495707b76d8a79a1be4393a38fe76fcd73

Thanks a lot in advance!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions