1👍
It literally tells you what the problem is
Don’t remove unused var checks in eslint, thats just lazy.
It sees two problems with your code:
- You are using composition API, yet you have not included setup in your script tag. Your script opening tag should look like
<script setup>
this. Ref: docs - Your show function doesn’t use icon variable. So it should be removed since it creates unnecessary noise in the code.
Hope this helps
- [Vuejs]-Can't passed a vue js unit test made with jest
- [Vuejs]-Change done.img on click todoapp with vueJs
Source:stackexchange.com