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

Option to disable default exports (use named exports)? #293

Open
andrei-ce opened this issue May 9, 2023 · 1 comment
Open

Option to disable default exports (use named exports)? #293

andrei-ce opened this issue May 9, 2023 · 1 comment

Comments

@andrei-ce
Copy link

andrei-ce commented May 9, 2023

Hi all,

as a suggestion I would like to either have a snippet or have a configuration setting for exporting react components as named imports only, without the default keyword. I know this is a personal preference but not having to delete the default keyword all the time would same some time.

As an example, adding the config below to VS Code's settings.json saved me a lot of time and I wish there was something to turn off default exports:
"reactSnippets.settings.importReactOnTop": false,

Either way, thanks this is already a great extension!

@putsan
Copy link

putsan commented Sep 12, 2023

Thank you, Your description with the example helped me understand how to properly modify existing parameters. The read.me didn't mention anything about this, and as a newbie in such matters, I didn't immediately catch on to which keys to refer to.

I've created a PR #308 to add this explanation for others, but I'm not sure about the likelihood of it being accepted.

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

No branches or pull requests

2 participants