如何禁用@ typescripteslint / nononnullassertion规则

在.eslintrc.js的rules中添加如下内容:

'@typescript-eslint/no-non-null-assertion': 'off'

优秀不够,你是否无可替代

软件测试交流QQ群:721256703,期待你的加入!!

欢迎关注我的微信公众号:软件测试君


原文地址:https://www.cnblogs.com/longronglang/p/15756095.html