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
Before You File a Bug Report Please Confirm You Have Done The Following...
I'm using eslint-plugin-astro. (*.astro file linting does not work with the parser alone. You should also use eslint-plugin-astro with it.)
I'm sure the problem is a parser problem. (If you are not sure, search for the issue in eslint-plugin-astro repo and open the issue in eslint-plugin-astro repo if there is no solution.
I have tried restarting my IDE and the issue persists.
I have updated to the latest version of the packages.
What version of ESLint are you using?
8.53.0
What version of eslint-plugin-astro and astro-eslint-parser are you using?
Hmm.... I was thinking of returning a virtual export default node from the parser to inform the import plugin of the export default, but that would cause a false positive in another rule.
We should consider another solution 🤔
Before You File a Bug Report Please Confirm You Have Done The Following...
*.astro
file linting does not work with the parser alone. You should also use eslint-plugin-astro with it.)What version of ESLint are you using?
8.53.0
What version of
eslint-plugin-astro
andastro-eslint-parser
are you using?What did you do?
Configuration
What did you expect to happen?
The import of the Astro component should not be highlighted as error
What actually happened?
Link to Minimal Reproducible Example
https://github.com/arty-name/typescript-eslint-astro-fragment
The branch is called
export-default
Additional comments
Somehow the error only appeared when the imported component started importing other components.
This is a followup for ota-meshi/eslint-plugin-astro#275
The text was updated successfully, but these errors were encountered: