The issue involves VS Code ESLint extension integration with eslint-plugin-react-hooks.
The issue involves eslint-plugin-react-hooks breaking the VS Code ESLint extension, specifically causing missing 'Code' fields in the problem pane and potentially breaking linting functionality for other rules. The problem requires investigating the interaction between the plugin and the VS Code extension, but the exact scope and root cause are not fully clear.
https://github.com/simarmol/eslint-plugin-react-hooks-repro
The latest version of eslint-plugin-react-hooks does not show a code/identity for any errors in the VS Code Problem Pane, only the codes. This can be seen by having an error in a file for eslint-plugin-react-hooks, having the ESLint extension installed and opening a file with issues, then viewing the problem pane,
In the repro repo I have linked I have copied the examples of the violations from the react docs into one file and set up a basic eslint config.
yarn or package manager of choice to install dependenciesindex.jsxnpx eslintThe issue I originally wanted to report was the missing 'Code' field for most of the hooks rules in the VS Code pane, but when I made the repro I found it barely seems to work at all with the hooks ruleset, and indeed they seem to break linting functionality for other rules in the same file in VS Code's ESLint extension.
To show that it is the hooks plugin causing the issue:
eslint.config.mjsClaim this issue to let others know you're working on it. You'll earn 20 points when you complete it!