jsx-eslint/eslint-plugin-react

ElementConfig should be used to determine props required

オープン

#1,904 opened on 2018/07/26

 (3 件のコメント) (6 件のリアクション) (0 人の担当者)JavaScript (2,731 件のフォーク)batch import
flowhelp wantedtypescript

Repository metrics

Stars
 (9,293 個のスター)
PR merge metrics
 (PR metrics pending)

説明

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.

コントリビューターガイド