Skip to content

Commit e40b0a6

Browse files
AndersDJohnsonljharb
authored andcommitted
[Docs] forbid-component-props: inclusive language w/ allowlist (#3473)
1 parent a8d2942 commit e40b0a6

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
@@ -10,7 +10,9 @@ This change log adheres to standards from [Keep a CHANGELOG](https://keepachange
1010

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

15+
[#3473]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3473
1416
[#3464]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3464
1517
[#3459]: https://github.com/jsx-eslint/eslint-plugin-react/pull/3459
1618

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)