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 .
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
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.