You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/rules/jsx-no-literals.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,6 +34,7 @@ The supported options are:
34
34
-`allowedStrings` - An array of unique string values that would otherwise warn, but will be ignored.
35
35
-`ignoreProps` (default: `false`) - When `true` the rule ignores literals used in props, wrapped or unwrapped.
36
36
-`noAttributeStrings` (default: `false`) - Enforces no string literals used in attributes when set to `true`.
37
+
-`restrictedAttributes` - An array of unique attribute names where string literals should be restricted. Only the specified attributes will be checked for string literals when this option is used. **Note**: When `noAttributeStrings` is `true`, this option is ignored at the root level.
37
38
-`elementOverrides` - An object where the keys are the element names and the values are objects with the same options as above. This allows you to specify different options for different elements.
0 commit comments