This code is triggering the no-shadow rule, I think it is a bug but it may
be some JavaScript/ES6 weirdness that I'm unaware of so thought I'd ask
here before opening a ticket.
const initialState = {
user: {},
streams: []
}
const actionsMap = {
[USER_LOGGED_IN]: (state, action) => {
let user = {
email: action.email,
authorization: action.authorization
}
localStorage.setItem(USER_STORAGE_KEY, JSON.stringify(user))
return { user }
}
}
The let user = {} isn't shadowing the field in the initialState const is
it???
--
You received this message because you are subscribed to the Google Groups
"ESLint" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.