Skip to content

Commit 686fa76

Browse files
authored
Docs: Document forbid for no-unescaped-entities rule (jsx-eslint#1263)
1 parent 5f1ec80 commit 686fa76

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)