We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 18e237b commit 9f5f96fCopy full SHA for 9f5f96f
lib/rules/jsx-no-literals.js
@@ -70,7 +70,7 @@ module.exports = {
70
config.allowedStrings = new Set(config.allowedStrings.map(trimIfString));
71
72
function defaultMessageId() {
73
- const ancestorIsJSXElement = arguments.length > 1 && arguments[0];
+ const ancestorIsJSXElement = arguments.length >= 1 && arguments[0];
74
if (config.noAttributeStrings && !ancestorIsJSXElement) {
75
return 'noStringsInAttributes';
76
}
0 commit comments