gajus / gajus/eslint-plugin-flowtype
Destructored vars (const, let, var) do not need type
Open
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
Assessment
This issue has not been assessed yet.