[英]Eslint with Vue gives function is defined but never used no-unused-vars
Is there a way to fix this error in vue.js ( vue3 ) before this error I have errors about prettier有没有办法在这个错误之前修复 vue.js ( vue3 ) 中的这个错误我有关于 prettier 的错误
when I run "npm run serve" I have this error I use "npm run lint -- --fix" but nothing change当我运行“npm run serve”时出现此错误我使用“npm run lint -- --fix”但没有任何改变
eslintrc.js eslintrc.js
It literally tells you what the problem is它从字面上告诉你问题是什么
Don't remove unused var checks in eslint, thats just lazy.不要在 eslint 中删除未使用的 var 检查,那只是懒惰。
It sees two problems with your code:它发现您的代码存在两个问题:
<script setup>
this.<script setup>
这个。 Ref: docs Hope this helps希望这可以帮助
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.