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

feat(eslint): remove preference for default export #2447

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

HoloTheDrunk
Copy link
Contributor

@HoloTheDrunk HoloTheDrunk commented Oct 22, 2024

Description

Change ESlint config to remove the preference for default exports.
Also clear a warning caused by unnecessarily quoted object fields in the config.

Motivation and Context

Default exports mess with tree shaking and are generally better avoided.

@jailln
Copy link
Contributor

jailln commented Oct 25, 2024

Thanks for this PR :) Should we modify all our exports then ? WDYT?

@HoloTheDrunk
Copy link
Contributor Author

HoloTheDrunk commented Oct 25, 2024

That's the end goal, but I believe we're better off making these changes gradually as we progress through the TS rewrite, essentially grouping edits of the library into isolated chunks per PR instead of one massive sweep. Easier to keep track of and nicer for the git diffs.

@jailln
Copy link
Contributor

jailln commented Oct 25, 2024

That's the end goal, but I believe we're better off making these changes gradually as we progress through the TS rewrite, essentially grouping edits of the library into isolated chunks per PR instead of one massive sweep. Easier to keep track of and nicer for the git diffs.

Ok, fine by me

@HoloTheDrunk HoloTheDrunk merged commit 4e7bcd2 into iTowns:master Oct 25, 2024
9 checks passed
@HoloTheDrunk HoloTheDrunk deleted the prefer_export_ts branch October 25, 2024 11:29
jailln pushed a commit to jailln/itowns that referenced this pull request Oct 30, 2024
Default exports mess with tree shaking and are a source of naming inconsistencies.
jailln pushed a commit to jailln/itowns that referenced this pull request Oct 31, 2024
Default exports mess with tree shaking and are a source of naming inconsistencies.
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