Last 12 weeks ยท 11 commits
2 of 6 standards met
Before You File a Bug Report Please Confirm You Have Done The Following... [x] I'm using eslint-plugin-vue. [x] I'm sure the problem is a parser problem. (If you are not sure, search for the issue in eslint-plugin-vue repo and open the issue in eslint-plugin-vue repo if there is no solution. [x] I have tried restarting my IDE and the issue persists. [x] I have updated to the latest version of the packages. What version of ESLint are you using? 9.39.2 What version of and are you using? "eslint-plugin-vue": "10.6.2" "vue-eslint-parser": "10.2.0" Other versions "@types/node": "24.10.4" "@eslint/js": "9.39.2" "@vue/eslint-config-typescript": "14.6.0" "eslint": "9.39.2" "eslint-import-resolver-typescript": "4.4.4" "jiti": "2.6.1" "prettier": "3.8.1" "typescript": "5.9.3" "typescript-eslint": "8.50.0" What did you do? Configuration What did you expect to happen? That the variable inside the computed is of type What actually happened? The variable inside the computed is detected as type which triggers an error from the (though any rule with type information might be a problem here) Link to Minimal Reproducible Example https://github.com/DesselBane/repro-vue-eslint-any Additional comments Possible workaround is to explicitly specify the type of the template ref like this
Repository: vuejs/vue-eslint-parser. Description: The ESLint custom parser for `.vue` files. Stars: 488, Forks: 81. Primary language: TypeScript. Languages: TypeScript (95.1%), JavaScript (4.9%). License: MIT. Topics: eslint, eslint-custom-parser, javascript, single-file-component, static-code-analysis, vue, vuejs. Latest release: v10.4.0 (2w ago). Open PRs: 3, open issues: 23. Last activity: 2w ago. Community health: 37%. Top contributors: mysticatea, ota-meshi, 9romise, woongsikchoi, fisker, kazupon, waynzh, rashfael, TatsuyaYamamoto, sawa-zen and others.
TypeScript
close #287
Before You File a Bug Report Please Confirm You Have Done The Following... [x] I'm using eslint-plugin-vue. [x] I'm sure the problem is a parser problem. (If you are not sure, search for the issue in eslint-plugin-vue repo and open the issue in eslint-plugin-vue repo if there is no solution. [x] I have tried restarting my IDE and the issue persists. [x] I have updated to the latest version of the packages. What version of ESLint are you using? v10.0.0 What version of and are you using? vue-eslint-parser@10.7.0 eslint-plugin-vue@10.7.0 What did you do? eslint 10 recommended settings now enables rule which triggers false positives in SFCs From what I understand in this thread https://github.com/eslint/eslint/issues/20501, I think template variables need to be marked as What did you expect to happen? No errors What actually happened? Link to Minimal Reproducible Example https://github.com/Trinovantes/eslintjs10vuebug Additional comments _No response_