eslint-plugin-flowtype
eslint-plugin-flowtype copied to clipboard
Destructored vars (const, let, var) do not need type
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
}
}
]