在打字稿中启用React-Hooks Eslint插件.TSLINT中没有插件



我是正确的,说不可能将此Eslint插件与tslint一起使用?

我尝试将其添加到我的tslint.json:

"plugins": ["react-hooks"],
"rules: {
  "react-hooks/rules-of-hooks": "error",
  "react-hooks/exhaustive-deps": "warn",

,但我在控制台中看到以下错误:

Could not find implementations for the following rules specified in the configuration:
    react-hooks/rules-of-hooks
    react-hooks/exhaustive-deps

您可以将以下库用于嵌套反应钩错误。
https://github.com/gelio/tslint-react-hooks
核心TSLINT存储库中的同一贡献者有一个公关。对于最近介绍的详尽DEP规则,我要求作者将其添加到同一仓库中,但仍在等待响应。https://github.com/gelio/tslint-react-hooks/issues/9

最新更新