-
Notifications
You must be signed in to change notification settings - Fork 425
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
Default vue@3 site tsconfig doesn't work with @typescript-eslint rules #177
Comments
You can take the configurations from https://github.com/vuejs/eslint-config-airbnb/blob/baf71f4566110e37b3d6f041a2f842c1c9960961/packages/eslint-config-airbnb-with-typescript/index.js#L83-L92 as a reference. TBH, I myself also find it very challenging to get the ESLint configuration work out of the box for complex projects, while still keeping it easy to use and understand for newcomers. |
Yikes. That really reminds me why I had a good hard long look into using Blazor for my project instead of JS/TS/Vue. The latter still feels unfinished to the point of being buggy. Hopefully in a few years Blazor will be ready for primetime and I can just use C# from start to finish! |
Vue version
3.2.38
Link to minimal reproduction
https://gitlab.com/jez9999/vue3-demo
Steps to reproduce
What is expected?
There should be a config that allows rules such as
"@typescript-eslint/no-unsafe-assignment": "error"
to be configured. However, when this is configured, the following error is given:If you then provide this project value in
.eslintrc.cjs
:... Vue's
.tsconfig
setup should work with this.What is actually happening?
Because Vue's
.tsconfig
setup is using project references, this does not work with typescript-eslint parser services. typescript-eslint does not yet support project references.There are many useful ESLint rules in that repo that I wish to enforce on my Vue TypeScript code, so it is a major problem that the default Vue site's config doesn't work with it. I'd like to know how to get it to work, and perhaps the default config should be changed to avoid using project references.
System Info
Any additional comments?
No response
The text was updated successfully, but these errors were encountered: