Skip to content

Commit

Permalink
Docs: Document forbid for no-unescaped-entities rule (#1263)
Browse files Browse the repository at this point in the history
  • Loading branch information
alexilyaev committed Dec 24, 2017
1 parent 5f1ec80 commit 686fa76
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/rules/no-unescaped-entities.md
Expand Up @@ -68,3 +68,19 @@ The following patterns are **not** considered warnings:
```jsx
<div> {'>'} </div>
```

## Rule Options

```js
...
"react/no-unescaped-entities": [<enabled>, { "forbid": Array<string> }]
...
```

### `forbid`

Overwrite the default forbidden entities array `['>', '"', '\'', '}']` with your own:

```js
"react/no-unescaped-entities": ["error", {"forbid": [">", "}"]}],
```

0 comments on commit 686fa76

Please sign in to comment.