import-js/eslint-plugin-import
`namespaces` rule doesn't respect scopes
Aberta
#1.167 aberto em 10 de set. de 2018
bughelp wanted
Métricas do repositório
- Stars
- (5.940 estrelas)
- Métricas de merge de PR
- (Mesclagem média 138d 22h) (3 fundiu PRs em 30d)
Description
repro:
import React from 'react'
import * as wizards from './wizards'
// `wizards` redefined in local scope
function ComponentX({ wizards, submitWizard }) {
return (
<div>
{ shouldShowWizard && !isEmpty(wizards)
// unable to validate computed reference report here at `wizards[0]`
? <WizardZero {...wizards[0]} onSubmit={submitWizard} />
: <WhateverElse />
}
</div>
)
}
pretty corner-y case but just making a note