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

Add no-anonymous-default-export to default rule set #12291

Closed
gaearon opened this issue Apr 28, 2020 · 4 comments · Fixed by #14519
Closed

Add no-anonymous-default-export to default rule set #12291

gaearon opened this issue Apr 28, 2020 · 4 comments · Fixed by #14519
Assignees
Milestone

Comments

@gaearon
Copy link
Contributor

gaearon commented Apr 28, 2020

Not sure if Next has a lint rule set, but if it does, we should add https://github.com/benmosher/eslint-plugin-import/blob/master/docs/rules/no-anonymous-default-export.md there. See https://twitter.com/dan_abramov/status/1255237989548134405.

@Timer Timer self-assigned this Apr 28, 2020
@Timer Timer added this to the 9.4 milestone Apr 28, 2020
@Janpot
Copy link
Contributor

Janpot commented Apr 29, 2020

Haven't seen any discussion around it in this repo yet, but can eslint-plugin-react-hooks be added as well? Or are there reasons not to?

@gaearon
Copy link
Contributor Author

gaearon commented Apr 29, 2020

We should also probably fix examples like this: https://github.com/zeit/next.js/blob/master/examples/hello-world/pages/index.js

Haven't seen any discussion around it in this repo yet, but can eslint-plugin-react-hooks be added as well? Or are there reasons not to?

If Next has a rule set, this plugin 100% should be there. It's pretty vital so I'm surprised if it's not there already...

@timneutkens
Copy link
Member

Next.js doesn't have eslint built in currently, this is something the Chrome team is working on though: #11986

@balazsorban44
Copy link
Member

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@vercel vercel locked as resolved and limited conversation to collaborators Jan 29, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants