-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Bug: [recommended-requiring-type-checking] Parsing error: '>' expected #6532
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
Comments
can you provide code example? generally this error usually means that you don't have jsx enabled in your project from what i can understand your config is not correct but without repro it's going to be hard to say why/ for first error read: note references are not supported, i recommend creating tsconfig.eslint.json |
I have the parser set up |
If you don't set these items, it's normal |
yes, this is actually supper weird (related issue vuejs/vue-eslint-parser#176) From my analysis, it looks like typescript reports ScriptKind TS for this file as reported path its code that creates program for this: typescript-eslint/packages/typescript-estree/src/create-program/getWatchProgramsForProjects.ts Line 256 in 4fbf0f0
this is most likely related to typescript-eslint/packages/typescript-estree/src/create-program/getWatchProgramsForProjects.ts Line 352 in 4fbf0f0
or difference in behaviour of determinign ScriptKind in
@bradzacher all non standard extensions when paired with |
I didn't think you can use type-aware linting for vue template files because they aren't physical files on disk? I don't know enough about vue to be able to say much of anything about how the infra fits together. |
after debugging it seem that filePath is actually not pointing to virtual file, its reported as there is actually no information from vue parser that we should treat this file as cc @ota-meshi |
I don't know if this is relevant to this issue, but I am experimenting with ways to provide the correct type information in I'm not sure if it will work or not, however, as I've gotten very little feedback from users. |
@ota-meshi Looking forward to the official release |
I'm going to close this as an external issue as I don't think there's anything we can explicitly action in this project. |
Uh oh!
There was an error while loading. Please reload this page.
Before You File a Bug Report Please Confirm You Have Done The Following...
Playground Link
Repro Code
https://github.com/laterdayi/tests
ESLint Config
Expected Result
is work
Actual Result
Additional Info
https://github.com/laterdayi/tests
No response
The text was updated successfully, but these errors were encountered: