简体   繁体   中英

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? 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.

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.

我成功安装了 ESLint vscode 扩展

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM