我们有严格的零棉绒问题政策。这意味着所有错误和警告都需要修复。
在我们的 React typescript 项目中面临这个 lint 错误:
warning Unexpected any. Specify a different type @typescript-eslint/no-explicit-any
在 Google 和 lint 网站上搜索。我没有找到这样的解决方案!
尝试过这个:// eslint:@typescript-eslint/no-explicit-any: "off"
哪个不起作用
有谁知道如何绕过这个eslint
React typescript 项目中的规则?
在 Angular 中,我们将其添加到 TypeScript 规则中。不在一般规则中,因为有时这不起作用。
Example:
"rules": {
"@typescript-eslint/no-explicit-any": ["off"]
}
In the .eslintrc.json file
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)