We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
no-unused-vars
const foo = new MyClass(() => { foo.hello(); });
No lint errors
Error on const foo
const foo
This situation arises when new MyClass has a side-effect, for example attaching event handlers. For the sake of illustration:
new MyClass
class MyClass { constructor(run: () => void) { setTimeout(run, 1000); } hello() { console.log("hello"); } }
In searching for this issue, I only found #667.
deno 1.46.2 (stable, release, aarch64-apple-darwin) v8 12.9.202.5-rusty typescript 5.5.2
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Lint Name
no-unused-vars
Code Snippet
Expected Result
No lint errors
Actual Result
Error on
const foo
Additional Info
This situation arises when
new MyClass
has a side-effect, for example attaching event handlers. For the sake of illustration:In searching for this issue, I only found #667.
Version
The text was updated successfully, but these errors were encountered: