error The “xxxxx” component has been registered but not used(vue/no-unused-components)
- Translated as "xxxxx" component has been registered but not used.
Reason for error : The eslint syntax specification is used in the Vue project
Solution 1: Delete the reference of the component, that is, the unused components are not referenced
Solution 2: Use the annotations provided by eslint
- Add comments before referencing components, eslint will ignore the Warning of the next line or ignore the Warning of the entire file
Solution 3: package.json
Add a new code block in , and the project needs to be recompiled after saving
"rules": {
"generator-star-spacing": "off",
"no-tabs":"off",
"no-unused-vars":"off",
"no-console":"off",
"no-irregular-whitespace":"off",
"no-debugger": "off"
},