Bug: eslint-plugin-sonarjs's rules-of-hooks is minamed at runtime

I can confirm this is already fixed in 2.0.3. I just had to make sure to update to it.

For the record, here’s how it showed in the CLI in 2.0.2 (just to prove it wasn’t an editor caching issue, but as I said, already fixed anyway, thanks)

32:18 error React Hook “useState” is called in function “getName” that is neither a React function component nor a custom React Hook function. React component names must start with an uppercase letter. React Hook names must start with the word “use” sonarjs/pluginRules-of-hooks

1 Like