We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
no-anonymous-default-export
Implement a replacement rule for existing rule import/no-anonymous-default-export.
export default function () {}
export default class {}
export default () => {}
class A {} export default A;
export default class A {};
function a {} export default a;
export default function a {}
export default []; export default {}; export default 1; export default whatever;
For now, I only care about functions and classes, but we can check others in the future.
Maybe we can also suggest a fix based on the filename.
The text was updated successfully, but these errors were encountered:
Extracted from #1089 (comment)
Sorry, something went wrong.
Marked as accepted.
fisker
Successfully merging a pull request may close this issue.
Description
Implement a replacement rule for existing rule import/no-anonymous-default-export.
Fail
Pass
Additional Info
For now, I only care about functions and classes, but we can check others in the future.
Maybe we can also suggest a fix based on the filename.
The text was updated successfully, but these errors were encountered: