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

[WIP] feat(eslint): no-restricted-exports #2603

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

firestack
Copy link
Member

Default exports have many downsides, from requiring the user to give it a name to only being able to have a single default export. I'd like to formally propose and lint that we don't use default exports.

This unfortunately can't be merged at this moment without fixing all of our existing default usages, or marking them all as allowed for now.

@firestack firestack self-assigned this May 20, 2024
@firestack firestack force-pushed the kf/feat/no-default-exports branch from 3d6638f to cddc653 Compare May 20, 2024 13:30
@joshlarson
Copy link
Contributor

Unsure of whether this will work, but maybe this? https://eslint.org/docs/latest/use/configure/configuration-files#excluding-files-with-ignores

@firestack firestack force-pushed the kf/feat/no-default-exports branch from 523254a to 5a60be7 Compare September 10, 2024 17:19
firestack added a commit that referenced this pull request Oct 11, 2024
firestack added a commit that referenced this pull request Oct 11, 2024
firestack added a commit that referenced this pull request Oct 11, 2024
* fix(ts/helpers/vehicleLabel): explicitly export `vehicleLabel`

* refactor: use `vehicleLabel` in `mapMarkers`

* refactor: remove default export `vehicleLabel`

Part of:
- #2603
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants