question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Option to disable named export

See original GitHub issue

Is your feature request related to a problem? Please describe.

Named export that was added via #22 is great. But sometimes the class name conflicts with the component name and disturbs auto-completion.

Describe the solution you’d like

Add option to disable named export so the class name wouldn’t be shown in auto-completion.

Describe alternatives you’ve considered

No idea.

Additional context

It will be similar to css-loader’s namedExport option. (doc)

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mrmckebcommented, May 30, 2021
1reaction
yukukotanicommented, May 29, 2021

Great, Thanks!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Change: Prefer default export to no default export (#20) · Issues
All modules will always export named exports, meaning a future change will not affect the existing code.
Read more >
How do I resolve eslint import/no-named-as-default
I can't figure out why my import statement violates the lint rule. Removing the name of the class in ButtonBack.jsx ( export default...
Read more >
How to Disable Export to Excel Button in SharePoint Online?
Option 2: Inject CSS to the Site to Hide Export to Excel Button. Instead of dealing with permissions, The second approach disables the...
Read more >
no-restricted-exports - ESLint - Pluggable JavaScript Linter
Rule Details. This rule disallows specified names from being used as exported names. Options. By default, this rule doesn't disallow any names.
Read more >
eslint-plugin-import/prefer-default-export.md at main - GitHub
Definition: When there is only a single export from a module, prefer using default export over named export. How to setup config file...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found