sveltejs / language-tools

The Svelte Language Server, and official extensions which use it
MIT License
1.19k stars 193 forks source link

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

Open pawelblaszczyk5 opened 1 year ago

pawelblaszczyk5 commented 1 year ago

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!

ryoppippi commented 3 weeks ago

I'm facing this issue. I need a feature to omit declaration files to the project