Skip to content

Commit b685bf2

Browse files
committed
Fix lint
1 parent e5c9281 commit b685bf2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/rules/a11y-tooltip-interactive-trigger.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,10 @@ const isInteractiveAnchor = child => {
3333
const hasHref = getJSXOpeningElementAttribute(child.openingElement, 'href')
3434
const hasTo = getJSXOpeningElementAttribute(child.openingElement, 'to')
3535
if (!hasHref && !hasTo) return false
36-
37-
const href = hasHref ? getJSXOpeningElementAttribute(child.openingElement, 'href').value.value : getJSXOpeningElementAttribute(child.openingElement, 'to').value.value
36+
37+
const href = hasHref
38+
? getJSXOpeningElementAttribute(child.openingElement, 'href').value.value
39+
: getJSXOpeningElementAttribute(child.openingElement, 'to').value.value
3840

3941
const hasJSXValue = isJSXValue(child.openingElement.attributes)
4042
const isAnchorInteractive = (typeof href === 'string' && href !== '') || hasJSXValue

0 commit comments

Comments
 (0)