warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
·
vue3使用typescript报错any
在package.json里面的rules新增下面的话
"rules": {
"@typescript-eslint/semi": "off",
"@typescript-eslint/camelcase": "off",
"@typescript-eslint/no-explicit-any": ["off"] // 新增这句话,关闭any报错
}
更多推荐
所有评论(0)