Skip to content

Commit 66958f4

Browse files
committed
[Docs] Change to json5
1 parent d3bac5b commit 66958f4

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

docs/rules/jsx-newline.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ This is a stylistic rule intended to make JSX code more readable by requiring or
1010

1111
## Rule Options
1212

13-
```js
13+
```json5
1414
...
1515
"react/jsx-newline": [<enabled>, { "prevent": <boolean>, "allowMultilines": <boolean> }]
1616
...

docs/rules/no-unsafe.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ const Foo = bar({
5656

5757
## Rule Options
5858

59-
```js
59+
```json5
6060
...
6161
"react/no-unsafe": [<enabled>, { "checkAliases": <boolean> }]
6262
...

docs/rules/static-property-placement.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -127,23 +127,23 @@ MyComponent.propTypes = { /*...*/ };
127127

128128
## Rule Options
129129

130-
```js
130+
```json5
131131
...
132132
"react/static-property-placement": [<enabled>] // `static public field` enabled
133133
...
134134
```
135135

136136
or alternatively:
137137

138-
```js
138+
```json5
139139
...
140140
"react/static-property-placement": [<enabled>, <string>]
141141
...
142142
```
143143

144144
or alternatively:
145145

146-
```js
146+
```json5
147147
...
148148
"react/static-property-placement": [<enabled>, <string>, {
149149
childContextTypes: <string>,

0 commit comments

Comments
 (0)