Option to disable named export
See original GitHub issueIs 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:
- Created 2 years ago
- Comments:6 (3 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

This is now released as v3.3.0. https://github.com/mrmckeb/typescript-plugin-css-modules/releases/tag/v3.3.0
Great, Thanks!