Skip to content

Commit

Permalink
Merge 44ec08b into efd3da3
Browse files Browse the repository at this point in the history
  • Loading branch information
sirugh committed Oct 19, 2020
2 parents efd3da3 + 44ec08b commit c809fe6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions docs/rules/jsx-no-literals.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,11 @@ The supported options are:
* `noStrings` (default: `false`) - Enforces no string literals used as children, wrapped or unwrapped.
* `allowedStrings` - An array of unique string values that would otherwise warn, but will be ignored.
* `ignoreProps` (default: `false`) - When `true` the rule ignores literals used in props, wrapped or unwrapped.
* `noAttributeStrings` (default: `false`) - Enforces no string literals used in attributes when set to `true`.

To use, you can specify as follows:

```js
"react/jsx-no-literals": [<enabled>, {"noStrings": true, "allowedStrings": ["allowed"], "ignoreProps": false, "noAttributeStrings": true }]
"react/jsx-no-literals": [<enabled>, {"noStrings": true, "allowedStrings": ["allowed"], "ignoreProps": false }]
```

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

0 comments on commit c809fe6

Please sign in to comment.