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

8$: error on multiple 'export default'-s #1039

Closed
strager opened this issue Jun 29, 2023 · 1 comment
Closed

8$: error on multiple 'export default'-s #1039

strager opened this issue Jun 29, 2023 · 1 comment
Labels
for hire Get paid for working on this task: https://quick-lint-js.com/hiring.html

Comments

@strager
Copy link
Collaborator

strager commented Jun 29, 2023

export default class A {}
export default class B {}

The above code is invalid. quick-lint-js should report something like the following:

line 2: error: cannot export default more than once
line 1: note: export default previously appeared here

@strager strager added the for hire Get paid for working on this task: https://quick-lint-js.com/hiring.html label Jun 29, 2023
@k1ng440
Copy link
Contributor

k1ng440 commented Jul 25, 2023

I want to give this a try. I can't promise a good clean code though because this is going to be my first time contributing to C++ codebase and I will not accept payment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for hire Get paid for working on this task: https://quick-lint-js.com/hiring.html
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants