Skip to content

Commit 94a1b01

Browse files
bradzacherJamesHenry
authored andcommitted
[DOCS][no-unused-vars] improve documentation (typescript-eslint#172)
1 parent 11edf57 commit 94a1b01

File tree

1 file changed

+14
-2
lines changed

1 file changed

+14
-2
lines changed

Diff for: packages/eslint-plugin-typescript/docs/rules/no-unused-vars.md

+14-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,21 @@
11
# Prevent TypeScript-specific constructs from being erroneously flagged as unused (no-unused-vars)
22

3-
This rule only has an effect when the `no-unused-vars` core rule is enabled.
4-
53
It ensures that TypeScript-specific constructs, such as implemented interfaces, are not erroneously flagged as unused.
64

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+
```
719
## Rule Details
820

921
The following patterns are considered warnings:

0 commit comments

Comments
 (0)