jsx-eslint/eslint-plugin-react
Ver no GitHubNew rule to avoid prop value with array or object creation in render
Open
#1.633 aberto em 8 de jan. de 2018
acceptedhelp wantednew rule
Métricas do repositório
- Stars
- (8.630 stars)
- Métricas de merge de PR
- (Nenhuma PRs mesclada em 30d)
Description
There is a rule for prop value with function creation (bind, function(...), or arrow function): react/jsx-no-bind
But I can't find a rule for array ([]) or object ({}) creation.
It would be useful since it would help to avoid useless renders of pure components.