Skip to content

Commit

Permalink
[Docs] Change to json5
Browse files Browse the repository at this point in the history
  • Loading branch information
nbsp1221 committed Apr 27, 2023
1 parent d3bac5b commit bf97220
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion docs/rules/jsx-newline.md
Expand Up @@ -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": [<enabled>, { "prevent": <boolean>, "allowMultilines": <boolean> }]
...
Expand Down
2 changes: 1 addition & 1 deletion docs/rules/no-unsafe.md
Expand Up @@ -56,7 +56,7 @@ const Foo = bar({

## Rule Options

```js
```json5
...
"react/no-unsafe": [<enabled>, { "checkAliases": <boolean> }]
...
Expand Down
8 changes: 4 additions & 4 deletions docs/rules/static-property-placement.md
Expand Up @@ -127,23 +127,23 @@ MyComponent.propTypes = { /*...*/ };

## Rule Options

```js
```json5
...
"react/static-property-placement": [<enabled>] // `static public field` enabled
...
```

or alternatively:

```js
```json5
...
"react/static-property-placement": [<enabled>, <string>]
...
```

or alternatively:

```js
```json5
...
"react/static-property-placement": [<enabled>, <string>, {
childContextTypes: <string>,
Expand All @@ -168,7 +168,7 @@ The `options` schema defined above allows you to specify different rules for the

_This is only an example, we do not recommend this as a configuration._

```js
```json5
...
"react/static-property-placement": ["warn", "property assignment", {
childContextTypes: "static getter",
Expand Down

0 comments on commit bf97220

Please sign in to comment.