-
Notifications
You must be signed in to change notification settings - Fork 382
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
Conversation
Merged on #166. |
const { $$commentsState } = initalStates; | ||
const initialState = { | ||
$$commentsStore: $$commentsState.merge({ | ||
$$comments: initialComments, | ||
$$comments: props, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is bizarre.
- Please back out this change. The old code is important for readability.
- we should ignore the eslint rule here and with a comment to the github issue indicating the problem.
- please put a link to this code in the eslint issue (actually react-plugin probably, not main eslint)
Thanks @josiasds
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@justin808 Done 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
@josiasds @dylangrafmyre This needs to be reverted. See prior comments. Thanks. |
Previous change reverted and eslint rule disabled on commit bc07695. |
I did some debugging and find out the line that was failing the linter, so I just rewrote it.