TsLint:不允许调用函数

TsLint: function invocation disallowed

我的 Visual Studio 项目中有一些这样的 TypeScript 代码

if (_.isNull(user)) {
  //Do stuff
}

在保存时,TSLint 给了我

Message TsLint: function invocation disallowed: _.isNull    BaseCtrl.ts    127

在我的项目中有 Underscore.js 的 TypeScript 定义。

此消息是什么意思?如何修复我的代码以使 TSLint 满意或在我的 tslint.json 项目设置中关闭此消息?

我认为这是使用 isNull 的问题,它似乎在函数禁止列表中。

https://github.com/palantir/tslint/blob/master/src/rules/banRule.ts

Web Essentials 自带的默认禁止列表包括三个禁止规则:

"ban": [true,
       ["_", "extend"],
       ["_", "isNull"],
       ["_", "isDefined"]
 ],