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
Open

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

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

Comments

@shall-git
Copy link

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
    }
  }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants