You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
That's the intended result. MyComponent.js should have export default MyComponent, and your index file should do export { default as MyComponent } from './MyComponent';
Tell us about your environment
What parser (default, Babel-ESLint, etc.) are you using? babel-eslint"@^7.2.3
Please show your full configuration:
Configuration
What did you do? Please include the actual source code causing the issue.
What did you expect to happen?
I am using export * to export all components in a directory.
index.js
export { MyComponent }
results in an error inprefer-default-export
The text was updated successfully, but these errors were encountered: