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

Question: what’s the best scope to address missing default export of Astro components? #275

Open
arty-name opened this issue Nov 23, 2023 · 2 comments

Comments

@arty-name
Copy link

I started using eslint-plugin-import for my Astro pages, and when I try to import Astro components, the plugin reports: ESLint: No default export found in imported module "../../layouts/Layout.astro".(import/default)

My gut feeling tells me that astro-eslint-parser should report the default export as existing, but maybe it’s the import plugin that needs to be configured properly, or even eslint-plugin-astro.

In which repository should I file an issue for that?

@ota-meshi
Copy link
Owner

eslint-plugin-import doesn't know about *.astro semantics, so I think we need to do something in astro-eslint-parser to resolve that.
Could you please provide a repository where we can reproduce the issue? I think we can use it as a test case.

@arty-name
Copy link
Author

Here you go ota-meshi/astro-eslint-parser#259

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants