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 eslint plugin error #168

Closed
wants to merge 1 commit into from
Closed

Fix eslint plugin error #168

wants to merge 1 commit into from

Conversation

josiasds
Copy link
Member

@josiasds josiasds commented Dec 3, 2015

I did some debugging and find out the line that was failing the linter, so I just rewrote it.

@josiasds
Copy link
Member Author

josiasds commented Dec 3, 2015

Merged on #166.

@josiasds josiasds closed this Dec 3, 2015
const { $$commentsState } = initalStates;
const initialState = {
$$commentsStore: $$commentsState.merge({
$$comments: initialComments,
$$comments: props,
Copy link
Member

Choose a reason for hiding this comment

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

This is bizarre.

  1. Please back out this change. The old code is important for readability.
  2. we should ignore the eslint rule here and with a comment to the github issue indicating the problem.
  3. please put a link to this code in the eslint issue (actually react-plugin probably, not main eslint)

Thanks @josiasds

Copy link
Contributor

Choose a reason for hiding this comment

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

@josiasds @justin808 Maybe you can just disable the rule for only this file or block? and not for the whole app. Don't know if the plugin will allow this?

Copy link
Member Author

Choose a reason for hiding this comment

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

@dylangrafmyre yep, we just need to put /* eslint react/prop-types: 0 */ at the top of the file or wrapping the whole block, see bc07695.

Copy link
Member Author

Choose a reason for hiding this comment

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

@justin808 Done 👍

Copy link
Member

Choose a reason for hiding this comment

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

👍

@justin808
Copy link
Member

@josiasds @dylangrafmyre This needs to be reverted. See prior comments. Thanks.

@josiasds
Copy link
Member Author

josiasds commented Dec 3, 2015

Previous change reverted and eslint rule disabled on commit bc07695.

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.

3 participants