We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c0db9b7 commit b7e5f1dCopy full SHA for b7e5f1d
lib/rules/no-unused-refs.js
@@ -237,11 +237,10 @@ module.exports = {
237
CallExpression(callExpression) {
238
const firstArgument = callExpression.arguments[0]
239
if (
240
- ('name' in callExpression.callee &&
241
- callExpression.callee.name !== 'useTemplateRef') ||
+ callExpression.callee.type !== 'Identifier' ||
+ callExpression.callee.name !== 'useTemplateRef' ||
242
!firstArgument ||
243
- (firstArgument.type !== 'Literal' &&
244
- firstArgument.type !== 'TemplateLiteral')
+ !utils.isStringLiteral(firstArgument)
245
) {
246
return
247
}
0 commit comments