各种eslint报错解决
160:5 error The "Modal" component has been registered but not used vue/no-unused-components
169:13 error 'res' is never reassigned. Use 'const' instead prefer-const
未使用的组件
永远不会被重新分配;使用’const’而不是’let’
解决方案
在package.json中添加
"vue/no-unused-components": ["off", { "ignoreWhenBindingPresent": true
}],
"prefer-const":"off",