jsx-eslint/eslint-plugin-react

assert only one dom element is returned from render() per component

Open

#66 aperta il 16 apr 2015

Vedi su GitHub
 (2 commenti) (0 reazioni) (0 assegnatari)JavaScript (2797 fork)batch import
acceptedenhancementhelp wantednew rule

Metriche repository

Star
 (8630 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

when starting with React, i got hit with the issue where i would return multiple elements per component. would be nice if this error shows up at the lint stage as well.

not totally necessary since react would error anyways.

Guida contributor