VUE_TS项目中类型使用any 报警告Unexpected any. Specify a different type.eslint@typescript-eslint/no-explicit-an
在使用TS 编写VUE代码,使用any类型报警告如下
解决方案:
在.eslintrc.js文件的rules添加关闭any类型警告配置
module.exports = {
rules: {
'@typescript-eslint/no-explicit-any':'off'//关闭any类型警告
}
}