import-js/eslint-plugin-import
`namespaces` rule doesn't respect scopes
オープン
#1,167 opened on 2018/09/10
bughelp wanted
Repository metrics
- Stars
- (5,939 個のスター)
- PR merge metrics
- (平均マージ 138d 22h) (30d で 3 merged PRs)
説明
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