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

bug: deno's linter should allow ts-expect-error #196

Closed
balupton opened this issue Jun 24, 2020 · 1 comment
Closed

bug: deno's linter should allow ts-expect-error #196

balupton opened this issue Jun 24, 2020 · 1 comment

Comments

@balupton
Copy link

balupton commented Jun 24, 2020

I'm working on a pull request to deno that uses // @ts-expect-error to allow tests to be able to say "we know that the following code has a type error, but that is the point, we want to test the code against invalid types"

/ref typescript-eslint/typescript-eslint#2093

/moved from denoland/deno#6454

@balupton
Copy link
Author

nevermind, seems if you include the error description like so // @ts-expect-error the error we are expecting then the linter passes

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

No branches or pull requests

1 participant