Skip to content

sort-prop-types: follow variable reference #622

Closed
singapore/lint-condo
#214
@oliviertassinari

Description

@oliviertassinari

As discussed in this failing test case
I think that it would be great to support the following type of pattern:

const propTypes = {
  muiTheme: PropTypes.object.isRequired,
  className: PropTypes.string,
};

const TextFieldLabel = (props) => {
  return (
    <div />
  );
};

TextFieldLabel.propTypes = propTypes

However, it's not simple, it requires to follow variable reference.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions