diff --git a/lib/rules/no-duplicate-attr-inheritance.js b/lib/rules/no-duplicate-attr-inheritance.js index 1f0fb0fd3..31aef7e44 100644 --- a/lib/rules/no-duplicate-attr-inheritance.js +++ b/lib/rules/no-duplicate-attr-inheritance.js @@ -63,7 +63,7 @@ module.exports = { const options = context.options[0] || {} const checkMultiRootNodes = options.checkMultiRootNodes === true - /** @type {string | number | boolean | RegExp | BigInt | null} */ + /** @type {Literal['value']} */ let inheritsAttrs = true /** @type {VReference[]} */ const attrsRefs = [] diff --git a/lib/rules/no-unused-refs.js b/lib/rules/no-unused-refs.js index 4896ce25a..6c5407e02 100644 --- a/lib/rules/no-unused-refs.js +++ b/lib/rules/no-unused-refs.js @@ -237,8 +237,10 @@ module.exports = { CallExpression(callExpression) { const firstArgument = callExpression.arguments[0] if ( + callExpression.callee.type !== 'Identifier' || callExpression.callee.name !== 'useTemplateRef' || - !firstArgument + !firstArgument || + !utils.isStringLiteral(firstArgument) ) { return }