Skip to content

Commit

Permalink
jsx-max-props-per-line: Use json format in docs
Browse files Browse the repository at this point in the history
To be consistent with the "Rule Options" section and other docs
  • Loading branch information
kentor committed Jan 30, 2017
1 parent b52f3b8 commit a84d5f5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/rules/jsx-max-props-per-line.md
Expand Up @@ -46,14 +46,14 @@ Maximum number of props allowed on a single line. Default to `1`.
The following patterns are considered warnings:

```jsx
// [1, {maximum: 2}]
// [1, { "maximum": 2 }]
<Hello firstName="John" lastName="Smith" tel={5555555} />;
```

The following patterns are not considered warnings:

```jsx
// [1, {maximum: 2}]
// [1, { "maximum": 2 }]
<Hello
firstName="John" lastName="Smith"
tel={5555555}
Expand All @@ -68,13 +68,13 @@ Possible values:

The following patterns are considered warnings:
```jsx
// [1, {when: always}]
// [1, { "when": "always" }]
<Hello firstName="John" lastName="Smith" />
```

The following patterns are not considered warnings:
```jsx
// [1, {when: multiline}]
// [1, { "when": "multiline" }]
<Hello firstName="John" lastName="Smith" />
<Hello
firstName="John"
Expand Down

0 comments on commit a84d5f5

Please sign in to comment.