我是否正确地说,使用tslint的this eslint插件是不可能的?
我尝试将此添加到我的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
您可以使用以下库来嵌套 - react-hooks错误。 https://github.com/Gelio/tslint-react-hooks 核心tslint仓库中的同一个贡献者有待处理的PR。对于最近介绍的详尽的deps规则,我已经要求作者将其添加到同一个仓库但仍在等待响应。 https://github.com/Gelio/tslint-react-hooks/issues/9