eslint-plugin-react
Advanced tools
Comparing version 7.35.1 to 7.35.2
@@ -202,6 +202,10 @@ /** | ||
if (parentType === 'JSXAttribute') { | ||
textToReplace = `"${expressionType === 'TemplateLiteral' | ||
? expression.quasis[0].value.raw | ||
: expression.raw.slice(1, -1) | ||
}"`; | ||
if (expressionType !== 'TemplateLiteral' && /["]/.test(expression.raw.slice(1, -1))) { | ||
textToReplace = expression.raw; | ||
} else { | ||
textToReplace = `"${expressionType === 'TemplateLiteral' | ||
? expression.quasis[0].value.raw | ||
: expression.raw.slice(1, -1) | ||
}"`; | ||
} | ||
} else if (jsxUtil.isJSX(expression)) { | ||
@@ -208,0 +212,0 @@ textToReplace = getText(context, expression); |
{ | ||
"name": "eslint-plugin-react", | ||
"version": "7.35.1", | ||
"version": "7.35.2", | ||
"author": "Yannick Croissant <yannick.croissant+npm@gmail.com>", | ||
@@ -5,0 +5,0 @@ "description": "React specific linting rules for ESLint", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
829161
22331