UNPKG

586 BMarkdownView Raw
1# Prevent TypeScript-specific constructs from being erroneously flagged as unused (no-unused-vars)
2
3This rule only has an effect when the `no-unused-vars` core rule is enabled.
4
5It ensures that TypeScript-specific constructs, such as implemented interfaces, are not erroneously flagged as unused.
6
7## Rule Details
8
9The following patterns are considered warnings:
10
11```ts
12interface Foo {}
13```
14
15The following patterns are not warnings:
16
17```js
18interface Foo {}
19
20class Bar implements Foo {}
21```
22
23## When Not To Use It
24
25If you are not using `no-unused-vars` then you will not need this rule.