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

feat: Narrow react/no-multi-comp rule #51

Merged
merged 2 commits into from May 11, 2019

Conversation

matthargett
Copy link
Contributor

Summary

Discussed in #50.
The current rule being enabled can be noisy for perfectly fine code. There's a way to partially disable it, but consensus in issue #50 was to disable the rule altogether.

Test plan

Resolved noise on an internal project.

@matthargett matthargett changed the title Dsiable react/no-multi-comp rule Disable react/no-multi-comp rule May 7, 2019
@matthargett
Copy link
Contributor Author

Let's hold off on this to see if eslint-plugin-react 's fix for this problem in 7.13.0 resolves the issue.
Changelog referencing the fix:
jsx-eslint/eslint-plugin-react@f39829f#diff-4ac32a78649ca5bdd8e0ba38b7006a1eR39

Merged PR referenced in the CHangelog:
jsx-eslint/eslint-plugin-react#2145

@matthargett
Copy link
Contributor Author

@satya164 @thymikee It looks like 7.13.0 fixes the ignoreStateless property. I like the gentle nudging for developers to extract for better re-usability, so instead of turning it off I'm setting it as a warning. As we roll out this eslint update to a few dozen repos, I'll monitor closely to see if it needs to be completely disabled.

can you merge and publish?

@matthargett matthargett changed the title Disable react/no-multi-comp rule Narrow react/no-multi-comp rule May 10, 2019
@thymikee thymikee changed the title Narrow react/no-multi-comp rule feat: Narrow react/no-multi-comp rule May 11, 2019
@thymikee thymikee merged commit 1141a58 into callstack:master May 11, 2019
@matthargett matthargett deleted the patch-1 branch May 12, 2019 21:23
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.

None yet

3 participants