在打字稿中启用 react-hooks eslint 插件。 tslint 中没有插件
enabling the react-hooks eslint plugin in typescript. no plugins in tslint
我说不能将 this 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
您可以使用以下库来解决 nesting-react-hooks 错误。
https://github.com/Gelio/tslint-react-hooks
核心 tslint 回购中有来自同一贡献者的 PR 未决。
对于最近引入的详尽的 deps 规则,我已经要求作者将其添加到同一个 repo 中,但仍在等待响应。
https://github.com/Gelio/tslint-react-hooks/issues/9
我说不能将 this 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
您可以使用以下库来解决 nesting-react-hooks 错误。
https://github.com/Gelio/tslint-react-hooks
核心 tslint 回购中有来自同一贡献者的 PR 未决。
对于最近引入的详尽的 deps 规则,我已经要求作者将其添加到同一个 repo 中,但仍在等待响应。
https://github.com/Gelio/tslint-react-hooks/issues/9