diff --git a/docs/rules/jsx-newline.md b/docs/rules/jsx-newline.md index 8e69423427..ddb122958e 100644 --- a/docs/rules/jsx-newline.md +++ b/docs/rules/jsx-newline.md @@ -10,7 +10,7 @@ This is a stylistic rule intended to make JSX code more readable by requiring or ## Rule Options -```js +```json5 ... "react/jsx-newline": [, { "prevent": , "allowMultilines": }] ... diff --git a/docs/rules/no-unsafe.md b/docs/rules/no-unsafe.md index fd5291a26a..bd5d61ae63 100644 --- a/docs/rules/no-unsafe.md +++ b/docs/rules/no-unsafe.md @@ -56,7 +56,7 @@ const Foo = bar({ ## Rule Options -```js +```json5 ... "react/no-unsafe": [, { "checkAliases": }] ... diff --git a/docs/rules/static-property-placement.md b/docs/rules/static-property-placement.md index 5a8df56035..9b104c6591 100644 --- a/docs/rules/static-property-placement.md +++ b/docs/rules/static-property-placement.md @@ -127,7 +127,7 @@ MyComponent.propTypes = { /*...*/ }; ## Rule Options -```js +```json5 ... "react/static-property-placement": [] // `static public field` enabled ... @@ -135,7 +135,7 @@ MyComponent.propTypes = { /*...*/ }; or alternatively: -```js +```json5 ... "react/static-property-placement": [, ] ... @@ -143,7 +143,7 @@ or alternatively: or alternatively: -```js +```json5 ... "react/static-property-placement": [, , { childContextTypes: ,