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
2:15 error Dispatch not found in 'redux' import/named
Whilst the "declaration syntax":
// @flowimporttype{Dispatch}from'redux';
Generates no error.
This is especially annoying for users that use the flowtype/type-import-style rule with the default setting ("identifier") and run ESLint with --fix, since that rule will automatically change the syntax, which then triggers import/named.
The point of the identifier syntax is to combine type and value imports in the same statement, e.g.
"Identifier syntax":
Gives following error:
Whilst the "declaration syntax":
Generates no error.
This is especially annoying for users that use the
flowtype/type-import-style
rule with the default setting ("identifier") and run ESLint with--fix
, since that rule will automatically change the syntax, which then triggersimport/named
.The point of the identifier syntax is to combine type and value imports in the same statement, e.g.
The docs for this rule state:
So I think this is a bug. Can we ignore the identifier syntax for this rule also?
The text was updated successfully, but these errors were encountered: