jakhando
jakhando

Reputation: 123

How to fix this red underline when using Flow in WebStorm in React project?

I tried to describe the problem with screenshots. In addition, JSHint here doesn't seem to play any role. There is an ESLint config has been set up, so all the code is edited according to ESLint. But anyway I don't know how this underline can be fixed.

One more note:

I also went to Settings > Languages and Frameworks > JavaScript. There is JavaScript language version is set up to Flow.

enter image description here

enter image description here

enter image description here

Upvotes: 0

Views: 648

Answers (1)

lena
lena

Reputation: 93868

From the screenshots it's clear that the error comes from JSHint. This linter is quite old and is not designed to work with Flow syntax. Please try turning it off in Settings | Languages & Frameworks | JavaScript | Code Quality Tools | JSHint

Upvotes: 2

Related Questions