jsx-eslint/eslint-plugin-react
在 GitHub 查看ElementConfig should be used to determine props required
Open
#1,904 建立於 2018年7月26日
flowhelp wantedtypescript
倉庫指標
- Star
- (8,630 star)
- PR 合併指標
- (30 天內沒有已合併 PR)
描述
ESLint currently uses ElementProps to determine what types are required by a component with Flow-annotated props, but it should be using ElementConfig instead.
See Using Default Props for Functional Components in Flow's docs for an explanation of why. See also their comparison of ElementProps and ElementConfig.
@ljharb suggested I open an issue here to get it changed.