[英]Does eslint-plugin-react-hooks displays the errors on the code itself or just the terminal when starting?
When using the package: https://www.npmjs.com/package/eslint-plugin-react-hooks Is it supposed to add visual yellow underline warnings on react component while using vscode?使用包时: https ://www.npmjs.com/package/eslint-plugin-react-hooks 是否应该在使用 vscode 时在反应组件上添加视觉黄色下划线警告? Or that just add the warnings when you are running the app on the terminal log?
或者只是在终端日志上运行应用程序时添加警告?
Mine only display those hook warnings on the log and I am wondering how to enable that in the code itself我的只在日志上显示那些钩子警告,我想知道如何在代码本身中启用它
That won't work in vscode however, if you add a linter extension it should do the job you want to do.但是,这在 vscode 中不起作用,如果您添加一个 linter 扩展,它应该可以完成您想做的工作。
I couldn't suggest one as I don't use one but have a search in the extensions tab of vscode, there's bound to be something that suits.我不能推荐一个,因为我不使用一个,但是在 vscode 的扩展选项卡中搜索,肯定会有适合的东西。
我成功安装了 ESLint vscode 扩展
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.