Skip to content

Commit 2f741a2

Browse files
committed
[Docs] Fix sample config code in "react/jsx-no-literals"
Make same as other rules.
1 parent 55523f3 commit 2f741a2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/rules/jsx-no-literals.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ There is only one option:
2727

2828
To use, you can specify like the following:
2929

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

3434
In this configuration, the following are considered warnings:

0 commit comments

Comments
 (0)