Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Syntax for ignoring type errors #1915

Open
brunnerh opened this issue Mar 3, 2023 · 1 comment
Open

Syntax for ignoring type errors #1915

brunnerh opened this issue Mar 3, 2023 · 1 comment
Labels
feature request New feature or request

Comments

@brunnerh
Copy link
Member

brunnerh commented Mar 3, 2023

Description

Sometimes certain TS issues are in markup and the tooling is unable to resolve them.
E.g. issues with bind:this as seen here:

Such issues can break e.g. CI builds using svelte-check, so it would be helpful to be able to ignore such errors if they are determined to be false positives.

Proposed solution

Extend svelte-ignore comments with the ability to ignore all or specific TS errors. E.g.

  • <!-- svelte-ignore ts --> - Ignore all TS errors
  • <!-- svelte-ignore ts-2322 --> - Ignore an error with a specific ID (this would be the one of the issue linked above)

Alternatively another type of special comment could be introduced if overloading the existing one is undesirable for some reason.

Alternatives

N/A

Additional Information, eg. Screenshots

No response

@dummdidumm
Copy link
Member

Related #1026

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants