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 66958f4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/rules/jsx-newline.md
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const Foo = bar({

## Rule Options

```js
```json5
...
"react/no-unsafe": [<enabled>, { "checkAliases": <boolean> }]
...
Expand Down
6 changes: 3 additions & 3 deletions docs/rules/static-property-placement.md
Original file line number Diff line number Diff line change
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 Down

0 comments on commit 66958f4

Please sign in to comment.