Skip to content

Most propType rules do not support propTypes wrapped in a function #1266

Closed
@flats

Description

#1253 added support for propTypes wrapped in a function to no-unused-prop-types. Similar support does not exist for other propType rules such as sort-prop-types, forbid-prop-types, and require-default-props. This came up a result of ljharb/prop-types-tools#23.

@ljharb's suggestion to move the propWrapperFunctions setting from no-unused-prop-types to settings and add support for that setting in all propType rules seems like the right move.

Hoping that I can find time to open a PR for this sometime over the next several weeks.

Activity

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions