vue+ts any类型警告 Unexpected any.

vue+ts any类型警告 Unexpected any. Specify a different type.eslint(@typescript-eslint/no-explicit-any)

关闭any类型警告:

我用的是vue/cli 4.5.6,可以在package.json里的rules加入规则:

"@typescript-eslint/no-explicit-any": ["off"]


另外可以在.eslintrc.js中的rules 添加上面代码即可。

你可能感兴趣的:(vue+ts any类型警告 Unexpected any.)