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
[no-unused-vars] warnings for used vars #1479
Comments
Might be related to #171 |
import Vue, { VNode } from "vue";
declare global {
namespace JSX {
// tslint:disable no-empty-interface
interface Element extends VNode {}
// tslint:disable no-empty-interface
interface ElementClass extends Vue {}
interface IntrinsicElements {
[elem: string]: any;
}
}
}
|
|
ok, thanks @armano2. so I am probably going to disable the rule to suppress the noise and to be able to spot other important warnings. You can close the issue if you think it is not worth of spending time. |
Please make sure you're using our version of the rule |
Thanks @bradzacher , Yeah, that's the |
This is a KP - the rule doesn't support things used in a type position well. |
Merging into #1856 |
Repro
warning: 'DirectiveOptions' is defined but never used (no-unused-vars)
warning: 'LoginTokenVm' is defined but never used (no-unused-vars)
Versions
@typescript-eslint/eslint-plugin
^2.15.0
@typescript-eslint/parser
^2.15.0
TypeScript
^3.7.4
ESLint
^6.8.0
node
12.14.1
npm
6.13.6
The text was updated successfully, but these errors were encountered: