Whenever you think there's a bug, you should feel free to file an issue. If
it's not a bug, we can always close it.

Here's an example of the format we need to properly evaluate if this is a
bug: https://github.com/eslint/eslint/issues/2903

Some things we need:

1. The exact output from ESLint, including line and column numberes
2. Your .eslintrc configuration

Thanks!

On Thu, Jul 2, 2015 at 7:47 AM, Ian Phillips <[email protected]> wrote:

> 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.
>



-- 

______________________________
Nicholas C. Zakas
@slicknet

Author, Professional JavaScript for Web Developers
Buy it at Amazon.com:
http://www.amazon.com/Professional-JavaScript-Developers-Nicholas-Zakas/dp/1118026691/ref=sr_1_3

-- 
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.

Reply via email to