File tree 1 file changed +14
-2
lines changed
packages/eslint-plugin-typescript/docs/rules
1 file changed +14
-2
lines changed Original file line number Diff line number Diff line change 1
1
# Prevent TypeScript-specific constructs from being erroneously flagged as unused (no-unused-vars)
2
2
3
- This rule only has an effect when the ` no-unused-vars ` core rule is enabled.
4
-
5
3
It ensures that TypeScript-specific constructs, such as implemented interfaces, are not erroneously flagged as unused.
6
4
5
+ ## Configuration
6
+
7
+ *** This rule only has an effect when the ` no-unused-vars ` core rule is enabled.***
8
+
9
+ See [ the core ESLint docs] ( https://eslint.org/docs/rules/no-unused-vars ) for how to configure the base ` no-unused-vars ` rule.
10
+
11
+ ``` JSON
12
+ {
13
+ "rules" : {
14
+ "no-unused-vars" : " error" ,
15
+ "typescript/no-unused-vars" : " error" ,
16
+ }
17
+ }
18
+ ```
7
19
## Rule Details
8
20
9
21
The following patterns are considered warnings:
You can’t perform that action at this time.
0 commit comments