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 bb2bff6 commit d56bb69Copy full SHA for d56bb69
src/rules/a11y-use-accessible-tooltip.js
@@ -100,9 +100,9 @@ module.exports = {
100
fixes.push(fixer.removeRange(rangeToRemove))
101
}
102
// 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
- // })
+ const rootImport = sourceCode.ast.body.find(statement => {
+ return statement.type === 'ImportDeclaration' && statement.source.value === '@primer/react'
+ })
106
const lastSpecifier = rootImport.specifiers[rootImport.specifiers.length - 1]
107
fixes.push(fixer.insertTextAfter(lastSpecifier, `, Tooltip`))
108
0 commit comments