How would I go about fixing this block of Firebase-related code, to conform to CRA's ESLint rules:
db.broadcasts.on('child_added', (snap) => {
this.setState((prevState) => {
broadcasts: prevState.broadcasts.push(snap)
});
});
I've tried allowing loops:
/*eslint no-labels: ["error", { "allowLoop": true }]*/
But that gave me the following error:
error Unexpected labeled statement
Thanks
