error ‘res‘ is never reassigned. Use ‘const‘ instead prefer-const
各种eslint报错解决160:5errorThe "Modal" component has been registered but not usedvue/no-unused-components169:13error'res' is never reassigned. Use 'const' insteadprefer-const未使用的组件永远不会被重新分配;使用’const’而不是’le
·
各种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",
更多推荐
已为社区贡献6条内容
所有评论(0)