-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
[@typescript-eslint/no-unnecessary-type-assertion] Puzzling fix in vue ts project #2591
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
You ticked the box saying you've upgraded to the latest version of our tooling, but you've listed v2.33.0 as your version. This version is 4 months old............. |
I upgraded and the problem still exists |
You should always try the latest version before filing an issue to ensure that it hasn't been fixed. We release every week, so there's a chance the latest version has fixed an issue. This is occurring because the lint rule uses the typescript nodes to do the fixes. typescript-eslint/packages/eslint-plugin/src/rules/no-unnecessary-type-assertion.ts Lines 242 to 250 in 39c45f3
Simple fix - happy to accept a PR. |
Happy to pick this up- |
Repro
https://github.com/eightHundreds/eslint-vue-ts--typescript-eslint-no-unnecessary-type-assertion-issue
Expected Result
Actual Result
Additional Info
Versions
@typescript-eslint/eslint-plugin
4.2.0
@typescript-eslint/parser
4.2.0
TypeScript
3.9.3
ESLint
7.9.0
node
10.14.2
The text was updated successfully, but these errors were encountered: