Skip to content
This repository has been archived by the owner on Aug 18, 2020. It is now read-only.

adds `react-no-render-methods’ rule #134

Merged
merged 2 commits into from
Aug 20, 2018
Merged

Conversation

cartogram
Copy link
Contributor

@cartogram cartogram commented Aug 3, 2018

Closes #127

Looking for feedback on the name and general approach.

@cartogram cartogram force-pushed the react-no-render-methods branch 2 times, most recently from 673bfa2 to 4f691ce Compare August 3, 2018 01:10
Copy link
Member

@lemonmade lemonmade left a comment

Choose a reason for hiding this comment

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

Looks good!

@@ -0,0 +1,46 @@
const Components = require('eslint-plugin-react/lib/util/Components');
Copy link
Member

Choose a reason for hiding this comment

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

Name is a little misleading since there is still a render method 🙃

Copy link
Contributor Author

Choose a reason for hiding this comment

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

what about react-no-multiple-render-methods?


context.report({
node,
message: `No renderX methods. '{{name}}' should be a seperate component.`,
Copy link
Member

Choose a reason for hiding this comment

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

Message is a little too direct

@cartogram cartogram force-pushed the react-no-render-methods branch 3 times, most recently from f94c6c5 to 952d305 Compare August 20, 2018 17:18
Copy link

@marutypes marutypes left a comment

Choose a reason for hiding this comment

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

I love this, great explanation 👏

@cartogram cartogram merged commit 5918f6e into master Aug 20, 2018
@cartogram cartogram deleted the react-no-render-methods branch April 27, 2019 18:46
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants