gajus / gajus/eslint-plugin-flowtype

use-flow-type marks a reference as used with the wrong reference when names are the same

Open
#340 8 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
1.1k
Forks
151
PR merge metrics
No merged PRs in 30d

Description

**Code**

```
import {
contextType,
} from 'someModule';

export function getLabelSets(
contextType: $Keys,
) { ... }
```

**Versions**
```
"babel-eslint": "^8.2.3",
"eslint": "^4.19.1",
"eslint-plugin-flowtype": "^2.48.0",
```

**Expected**

No errors.

**Actual**

```
error 'contextType' is defined but never used no-unused-vars
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.