Not compatible with typescript v5.
ota-meshi opened this issue · 1 comments
ota-meshi commented
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 commented
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"],
},