Skip to content

Commit

Permalink
Merge pull request #1743 from ybiquitous/fix-sample-code-react-jsx-no…
Browse files Browse the repository at this point in the history
…-literals

[Docs] Fix sample config code in "react/jsx-no-literals"
  • Loading branch information
ljharb authored Apr 1, 2018
2 parents 5890533 + 2f741a2 commit 9346eb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/rules/jsx-no-literals.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ There is only one option:

To use, you can specify like the following:

```json
"react/jsx-no-literals": [{"noStrings": true}]
```js
"react/jsx-no-literals": [<enabled>, {"noStrings": true}]
```

In this configuration, the following are considered warnings:
Expand Down

0 comments on commit 9346eb8

Please sign in to comment.