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

Not compatible with typescript v5. #184

Closed
2 tasks done
ota-meshi opened this issue Mar 17, 2023 · 1 comment · Fixed by #186
Closed
2 tasks done

Not compatible with typescript v5. #184

ota-meshi opened this issue Mar 17, 2023 · 1 comment · Fixed by #186
Labels
bug Something isn't working

Comments

@ota-meshi
Copy link
Owner

Before You File a Bug Report Please Confirm You Have Done The Following...

  • 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.36.0

What version of eslint-plugin-astro are you using?

0.25.0

What did you do?

Configuration
<!-- Paste your configuration here -->
<!-- Paste your code here -->

What did you expect to happen?

No parse errors occur.

What actually happened?

We always get a parsing error when using typescript-eslint and typescript v5.

Link to Minimal Reproducible Example

ota-meshi/astro-eslint-parser#177

Additional comments

No response

@ota-meshi
Copy link
Owner Author

Using the typescript-eslint-parser-for-extra-files instead of @typescript-eslint/parser might work around the problem.

       parser: "astro-eslint-parser",
       parserOptions: {
-        parser: "@typescript-eslint/parser",
+        parser: "typescript-eslint-parser-for-extra-files",
         extraFileExtensions: [".astro"],
       },

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant