Skip to content

Replace non-inclusive terms used in configuration of jest-validate #10235

@wojtekmaj

Description

@wojtekmaj

🚀 Proposal

  • Introduce recursiveDenylist option in jest-validate's ValidationOptions as a racially neutral alternative to recursiveBlacklist. Do not remove recursiveBlacklist just yet in order not to introduce a breaking change.

  • Warn against using recursiveBlacklist.

  • Remove recursiveBlacklist in the next major version after warning has been set up.

Motivation

Part of continuous effort to get rid of non-inclusive terms like "whitelist" and "blacklist" implying that white = good and black = bad.

I'd be more than happy to contribute the first bullet point by adding something along the lines of recursiveDenylist || recursiveBlacklist where applicable, if you think this is a good idea.

Metadata

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