You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tested this on my local and I don't get the eslint error tried 5.7.0 and 5.7.2. But additionally this shouldn't be an issue with eslint-plugin-flowtype it's more likely an issue with eslint itself and how it parses flow annotations, you can see the rule error is from eslint(no-undef)
@Brianzchen thanks for checking. I thought it might be an issue with flow-define-type since it's supposed to suppress no-undef when reporting type identifiers. I have "flowtype/define-flow-type": "warn", and parser: "@babel/eslint-parser", set in my .eslintrc.js. Maybe changing to a different parser would help. What parser were you using when you tested this?
I'm using the same, @babel/eslint-parser@7.13.14 to be exact. I have define-flow-type from recommended config. So not quite sure what the difference may be. But we only switched to @babel/eslint-parser recently, few weeks ago we were on babel-eslint@10.
eslint
only complains about the use ofComponentType
when used as a param type in a method, but functions are fine.This is using 5.7.2 of eslint-plugin-flowtype.
The text was updated successfully, but these errors were encountered: