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
This is an extension of #1098 / #1343. In addition to import type, Flow has a syntax import typeof. For example (try-flow link):
importtypeof{useEffect}from'react';varf: useEffect;// has the same type as React.useEffect
Like with import type, these imports are transpiled away and have no effect at runtime, so they should be given the same treatment as import type: that is, they should be ignored.
Currently they're not.
I have a fix which I'll send in a bit.
The text was updated successfully, but these errors were encountered:
gnprice
added a commit
to gnprice/eslint-plugin-import
that referenced
this issue
Nov 30, 2022
This is an extension of #1098 / #1343. In addition to
import type
, Flow has a syntaximport typeof
. For example (try-flow link):Like with
import type
, these imports are transpiled away and have no effect at runtime, so they should be given the same treatment asimport type
: that is, they should be ignored.Currently they're not.
I have a fix which I'll send in a bit.
The text was updated successfully, but these errors were encountered: