jsx-eslint/eslint-plugin-react

ElementConfig should be used to determine props required

Aberta

#1.904 aberto em 26 de jul. de 2018

 (3 comentários) (6 reações) (0 responsável)JavaScript (2.731 forks)batch import
flowhelp wantedtypescript

Métricas do repositório

Stars
 (9.293 estrelas)
Métricas de merge de PR
 (Métricas PR pendentes)

Description

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.

Guia do colaborador