Skip to content

Commit

Permalink
[Docs] forbid-component-props: inclusive language w/ allowlist
Browse files Browse the repository at this point in the history
  • Loading branch information
AndersDJohnson authored and ljharb committed Oct 26, 2022
1 parent 88cbcde commit 64f9266
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/forbid-component-props.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
{
Expand Down

0 comments on commit 64f9266

Please sign in to comment.