Eslint and Vue gives function defined but never used no-unused-vars
P粉511985082
P粉511985082 2023-12-26 00:06:05
0
1
525

Is there any way to fix this error in vue js (vue3) Before this error I had an error about prettier

I get this error when I run "npm runserve" I use "npm run lint -- --fix" but nothing changes

LoginPage.vue

eslintrc.js

P粉511985082
P粉511985082

reply all(1)
P粉041758700

It literally tells you what the problem is

Don't remove unused var checks in eslint, that's just laziness.

It found two problems with your code:

  1. You are using the composition API but have not included the settings in a script tag. Your script opening tag should look something like . Reference: Documentation
  2. Your display function does not use icon variables. Therefore it should be removed as it creates unnecessary noise in the code.

Hope this helps

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template