From 686fa760d9c9e000f236547c25a46e71979a8185 Mon Sep 17 00:00:00 2001 From: Alex Ilyaev Date: Sun, 24 Dec 2017 13:37:45 +0200 Subject: [PATCH] Docs: Document `forbid` for `no-unescaped-entities` rule (#1263) --- docs/rules/no-unescaped-entities.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/rules/no-unescaped-entities.md b/docs/rules/no-unescaped-entities.md index b561cb19af..aefc3af7c5 100644 --- a/docs/rules/no-unescaped-entities.md +++ b/docs/rules/no-unescaped-entities.md @@ -68,3 +68,19 @@ The following patterns are **not** considered warnings: ```jsx
{'>'}
``` + +## Rule Options + +```js +... +"react/no-unescaped-entities": [, { "forbid": Array }] +... +``` + +### `forbid` + +Overwrite the default forbidden entities array `['>', '"', '\'', '}']` with your own: + +```js +"react/no-unescaped-entities": ["error", {"forbid": [">", "}"]}], +```