From 64f9266920995db552343aa90caa7f91adbd3bc6 Mon Sep 17 00:00:00 2001 From: "Anders D. Johnson" Date: Wed, 26 Oct 2022 07:30:37 -0500 Subject: [PATCH] [Docs] `forbid-component-props`: inclusive language w/ allowlist --- CHANGELOG.md | 2 ++ docs/rules/forbid-component-props.md | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 026fbbb9c2..9d9d2a7ad6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,7 +18,9 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange ### Changed * [Perf] component detection: improve performance by avoiding traversing parents unnecessarily ([#3459][] @golopot) +* [Docs] `forbid-component-props`: inclusive language w/ allowlist ([#3473][] @AndersDJohnson) +[#3473]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3473 [#3464]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3464 [#3461]: https://github.com/jsx-eslint/eslint-plugin-react/issues/3461 [#3459]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3459 diff --git a/docs/rules/forbid-component-props.md b/docs/rules/forbid-component-props.md index 3cf2191fd0..f85e8866fd 100644 --- a/docs/rules/forbid-component-props.md +++ b/docs/rules/forbid-component-props.md @@ -45,7 +45,7 @@ Examples of **correct** code for this rule: An array specifying the names of props that are forbidden. The default value of this option is `['className', 'style']`. Each array element can either be a string with the property name or object specifying the property name, an optional -custom message, and a component whitelist: +custom message, and a component allowlist: ```js {