Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix FP S6759 (prefer-read-only-props): Restrict the scope to functional components #4182

Merged
merged 2 commits into from
Sep 20, 2023

Conversation

yassin-kammoun-sonarsource
Copy link
Contributor

Fixes #4175

Comment on lines +82 to +83
context.report({
node: props,
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not sure whether we should report on the whole parameter or only on the type annotation. WDYT ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

IMHO whole parameter is ok

Copy link
Contributor

@alex-sonar alex-sonar left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@sonarqube-next
Copy link

@yassin-kammoun-sonarsource yassin-kammoun-sonarsource merged commit 11ee4d2 into master Sep 20, 2023
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Fix FP S6759 (prefer-read-only-props): Restrict the scope to functional components
2 participants