Thorvarium
Thorvarium

Reputation: 118

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

Upvotes: 0

Views: 327

Answers (2)

Thorvarium
Thorvarium

Reputation: 118

I made it work installing the ESLint vscode extension

Upvotes: 0

Joshua James Wallace
Joshua James Wallace

Reputation: 34

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.

Upvotes: 1

Related Questions