import-js/eslint-plugin-import
Vedi su GitHubMake optional reporting of "import/export: Multiple exports of name ..."
Open
#2167 aperta il 27 lug 2021
enhancementhelp wanted
Metriche repository
- Star
- (4946 star)
- Metriche merge PR
- (Merge medio 138g 22h) (3 PR mergiate in 30 g)
Descrizione
Multiple exports of name is always reported as an error but it's a legitimate feature disciplined by ECMASCRIPT specs.
Es:
// D.js
const f = () => 'D::f'
export { f }
// E.js
export * from './D.js'
const f = () => 'E::f'
export { f }
Report -> import/export: Multiple exports of name 'f'.
Maybe eslint-plugin-import could give an optionable error that can ben disabled by config?
See also here and #1704