Skip to content

Commit 64f9266

Browse files
AndersDJohnsonljharb
authored andcommitted
[Docs] forbid-component-props: inclusive language w/ allowlist
1 parent 88cbcde commit 64f9266

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,9 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange
1818

1919
### Changed
2020
* [Perf] component detection: improve performance by avoiding traversing parents unnecessarily ([#3459][] @golopot)
21+
* [Docs] `forbid-component-props`: inclusive language w/ allowlist ([#3473][] @AndersDJohnson)
2122

23+
[#3473]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3473
2224
[#3464]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3464
2325
[#3461]: https://github.com/jsx-eslint/eslint-plugin-react/issues/3461
2426
[#3459]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3459

docs/rules/forbid-component-props.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Examples of **correct** code for this rule:
4545

4646
An array specifying the names of props that are forbidden. The default value of this option is `['className', 'style']`.
4747
Each array element can either be a string with the property name or object specifying the property name, an optional
48-
custom message, and a component whitelist:
48+
custom message, and a component allowlist:
4949

5050
```js
5151
{

0 commit comments

Comments
 (0)