-
Notifications
You must be signed in to change notification settings - Fork 5
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
False positive on esnext 'using' declaration #55
Comments
@erictheswift Thanks for reporting this, and thanks for generating a fix. It's definitely something we should address. Is there a test case you add to the test suite to make sure that we don't experience any regression? |
Sure:
|
@erictheswift Thanks! This poses an interesting problem however, since the parser can't actually parse the source when I run the test. Only TypeScript understands this syntax and we aren't set up for running through TS. For example, if I try to include these examples, it just gives me a syntax error:
Do you know of a common way to do test eslint plugins against TypeScript source? |
Got it. Yeah, I'm using it with `@typescript-eslint/parser`.
Tests will have to wait for espree versions to support using statements?
|
I guess this would require typescript parser specified as well as typescript as a dependency |
@erictheswift I can just go ahead and merge this as-is, and then comment it back in when it is supported. |
@cowboyd sounds reasonable |
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
[email protected]
for the project I'm working on.Explicit resource management proposal (
using
keyword) landed in typescript 5.2.prefer-let
plugin false positively reacts onusing
aiming to replace it withlet
Here is the diff that solved my problem:
This issue body was partially generated by patch-package.
The text was updated successfully, but these errors were encountered: