This repository was archived by the owner on Oct 3, 2024. It is now read-only.
sonarjs/cognitive-complexity doesn't ignore functional components written as arrow function #422
Labels
jira-import_26-04-2024
The issue have been imported to Jira (26/04/2024): https://sonarsource.atlassian.net/browse/ESLINTJS
I want to report a bug.
I saw that react functional components should be ignored: SonarSource/SonarJS#2238
But if the functional component is written as arrow function it's not ignored.
This will not be ignored and complain about cognitiv complexity:
But this will be ignored:
eslint-plugin-sonarjs version: 0.21.0
eslint version: 8.26.0
Node.js version: 20
Rule key: sonarjs/cognitive-complexity
The text was updated successfully, but these errors were encountered: