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
I think that you need to add the following configuration to the overrides section:
{// Define the configuration for `<script>` tag when using `client-side-ts` processor.files: ["**/*.astro/*.ts","*.astro/*.ts"],parser: "@typescript-eslint/parser",}
Before You File a Bug Report Please Confirm You Have Done The Following...
What version of ESLint are you using?
8.56.0
What version of
eslint-plugin-astro
are you using?0.31.0
What did you do?
Configuration
What did you expect to happen?
eslint CLI (
eslint . --ext .js,.ts,.astro
) is able to parse the astro file correctly (similar to how VSCode is able to).What actually happened?
eslint CLI fails with
Parsing error: Unexpected token :
Link to Minimal Reproducible Example
https://github.com/davidhouweling/eslint-astro-error
Additional comments
No response
The text was updated successfully, but these errors were encountered: