Skip to content

Commit a7bc91b

Browse files
authored
Merge pull request #1624 from alexilyaev/patch-2
Docs: Document `forbid` for `no-unescaped-entities` rule Closes #1263
2 parents 5f1ec80 + 686fa76 commit a7bc91b

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

docs/rules/no-unescaped-entities.md

+16
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,19 @@ The following patterns are **not** considered warnings:
6868
```jsx
6969
<div> {'>'} </div>
7070
```
71+
72+
## Rule Options
73+
74+
```js
75+
...
76+
"react/no-unescaped-entities": [<enabled>, { "forbid": Array<string> }]
77+
...
78+
```
79+
80+
### `forbid`
81+
82+
Overwrite the default forbidden entities array `['>', '"', '\'', '}']` with your own:
83+
84+
```js
85+
"react/no-unescaped-entities": ["error", {"forbid": [">", "}"]}],
86+
```

0 commit comments

Comments
 (0)