Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make optional reporting of "import/export: Multiple exports of name ..." #2167

Open
ftaiolivista opened this issue Jul 27, 2021 · 1 comment

Comments

@ftaiolivista
Copy link

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

@ljharb
Copy link
Member

ljharb commented Jul 27, 2021

An option sounds good.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants