如何为 TypeScript 中未调用的函数拼写错误设置 linting?

Emi*_*ski 6 lint function typescript

我注意到在编写代码时有时会错过函数调用括号。

我是说:

function someFn(): void {
  Date.parse;   // - instead of Date.parse(date)
  JSON.stringify;  // -- instead of JSON.stringify({})
  doSomething;  // -- instead of doSomething()
}
Run Code Online (Sandbox Code Playgroud)

我希望我的 IDE 注意到这一点,因为这种拼写错误在大型项目中确实很难调试。

有没有办法用 TypeScript、ESLint 等来检查这种情况?