Skip to content

Commit

Permalink
Merge pull request #1624 from alexilyaev/patch-2
Browse files Browse the repository at this point in the history
Docs: Document `forbid` for `no-unescaped-entities` rule

Closes #1263
  • Loading branch information
ljharb authored Dec 24, 2017
2 parents 5f1ec80 + 686fa76 commit a7bc91b
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions docs/rules/no-unescaped-entities.md
Original file line number Diff line number Diff line change
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 a7bc91b

Please sign in to comment.