gajus / gajus/eslint-plugin-flowtype

Destructored vars (const, let, var) do not need type

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

Description

```javascript
const {links, history} = this.props
```
**Expected**: No error.

**Actual**: ESlint: missing variable type annotation. (flowtype-/require-variable-type)

Maybe I'm missing something, but I can't figure out a valid configuration for this case

"flowtype/require-variable-type": [
2,
{
"excludeVariableMatch": "^map", // mapStateToProps & mapDispatchToProps
"excludeVariableTypes": {
"let": false,
"const": false
}
}
]

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.