Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
shall-git opened this issue Nov 15, 2018 · 0 comments

Comments

@shall-git
Copy link

commented Nov 15, 2018

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
    }
  }
]
@gajus gajus added the question label Nov 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants
You can’t perform that action at this time.