Vue project error eslint-disable-next-line no-unused-vars

As a novice who just learned Vue, Vue is really a big headache. It was hard to set up the Vue environment. As a result, when using ElementUI, an error was reported again. The error was reported when running
insert image description here
eslint-disable-next-line no-unused-vars
Solution:
insert image description here
In fact, eslint is used in the project
to add "rules" in package.json

"generator-star-spacing": "off",
      "no-tabs":"off",
      "no-unused-vars":"off",
      "no-console":"off",
      "no-irregular-whitespace":"off",
      "no-debugger": "off"

insert image description here
It should not be wrong, there is something wrong, I hope you can forgive me!

Guess you like

Origin blog.csdn.net/Hyanl/article/details/106231939