Skip to content

Update sort-comp for React 16.3+ #1767

@webOS101

Description

@webOS101
Contributor

The sort-comp rule will need to be updated to include the new lifecycle methods (while also keeping the older ones, optionally?). These include:

getDerivedStateFromProps
getSnapshotBeforeUpdate
UNSAFE_componentWillMount
UNSAFE_componentWillReceiveProps
UNSAFE_componentWillUpdate

Activity

otakustay

otakustay commented on Apr 18, 2018

@otakustay

Also, componentDidCatch is not listed in current sort-comp rule

dejoean

dejoean commented on Apr 18, 2018

@dejoean
Contributor

I made an attempt to add this feature with #1771

Would love to hear any feedback/suggestions

ljharb

ljharb commented on Apr 26, 2018

@ljharb
Member

Closed in #1771.

56 remaining items

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @ljharb@webOS101@otakustay@dejoean

        Issue actions

          Update sort-comp for React 16.3+ · Issue #1767 · jsx-eslint/eslint-plugin-react