eslint 无法找到内置流类型

eslint unable to find built-in flow types

error  'SyntheticUIEvent' is not defined  no-undef

对于:

handleDocumentKeyUp = (event: SyntheticUIEvent) => {}

我正在为我正在处理的一个开源项目 (eslintrc.js) 获取此信息,但不是在我自己的应用程序代码中,但我无法在 linting 设置中发现差异或错误.

missing/wrong 什么配置会使 eslint 无法找到内置流类型?

如果您在配置中启用 flowtype/define-flow-type 规则,它应该告诉 ESLint 有关流类型的信息。