Skip to content

Commit d56bb69

Browse files
oops
1 parent bb2bff6 commit d56bb69

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rules/a11y-use-accessible-tooltip.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,9 @@ module.exports = {
100100
fixes.push(fixer.removeRange(rangeToRemove))
101101
}
102102
// find the last specifier in the existing @primer/react import and insert Tooltip after that
103-
// const rootImport = sourceCode.ast.body.find(statement => {
104-
// return statement.type === 'ImportDeclaration' && statement.source.value === '@primer/react'
105-
// })
103+
const rootImport = sourceCode.ast.body.find(statement => {
104+
return statement.type === 'ImportDeclaration' && statement.source.value === '@primer/react'
105+
})
106106
const lastSpecifier = rootImport.specifiers[rootImport.specifiers.length - 1]
107107
fixes.push(fixer.insertTextAfter(lastSpecifier, `, Tooltip`))
108108
}

0 commit comments

Comments
 (0)