Skip to content

Commit a84d5f5

Browse files
committed
jsx-max-props-per-line: Use json format in docs
To be consistent with the "Rule Options" section and other docs
1 parent b52f3b8 commit a84d5f5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/rules/jsx-max-props-per-line.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ Maximum number of props allowed on a single line. Default to `1`.
4646
The following patterns are considered warnings:
4747

4848
```jsx
49-
// [1, {maximum: 2}]
49+
// [1, { "maximum": 2 }]
5050
<Hello firstName="John" lastName="Smith" tel={5555555} />;
5151
```
5252

5353
The following patterns are not considered warnings:
5454

5555
```jsx
56-
// [1, {maximum: 2}]
56+
// [1, { "maximum": 2 }]
5757
<Hello
5858
firstName="John" lastName="Smith"
5959
tel={5555555}
@@ -68,13 +68,13 @@ Possible values:
6868

6969
The following patterns are considered warnings:
7070
```jsx
71-
// [1, {when: always}]
71+
// [1, { "when": "always" }]
7272
<Hello firstName="John" lastName="Smith" />
7373
```
7474

7575
The following patterns are not considered warnings:
7676
```jsx
77-
// [1, {when: multiline}]
77+
// [1, { "when": "multiline" }]
7878
<Hello firstName="John" lastName="Smith" />
7979
<Hello
8080
firstName="John"

0 commit comments

Comments
 (0)