eslint warning no-use-before-define
should not apply to flow types
#2103
Labels
no-use-before-define
should not apply to flow types
#2103
Description
The default eslint rules warn about
no-use-before-define
of flow types. The warning is pointless because 'use before define' does not apply to flow types. This makes it impossible for example to define recursive types.Expected behavior
The
no-use-before-define
warning should not be reported.Actual behavior
Warning appears in the console.
Reproducible Demo
Create a CRA project and place the following text into one of the files:
The text was updated successfully, but these errors were encountered: