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