File tree 2 files changed +4
-2
lines changed
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ module.exports = {
63
63
const options = context . options [ 0 ] || { }
64
64
const checkMultiRootNodes = options . checkMultiRootNodes === true
65
65
66
- /** @type {string | number | boolean | RegExp | BigInt | null } */
66
+ /** @type {Literal['value'] } */
67
67
let inheritsAttrs = true
68
68
/** @type {VReference[] } */
69
69
const attrsRefs = [ ]
Original file line number Diff line number Diff line change @@ -237,8 +237,10 @@ module.exports = {
237
237
CallExpression ( callExpression ) {
238
238
const firstArgument = callExpression . arguments [ 0 ]
239
239
if (
240
+ callExpression . callee . type !== 'Identifier' ||
240
241
callExpression . callee . name !== 'useTemplateRef' ||
241
- ! firstArgument
242
+ ! firstArgument ||
243
+ ! utils . isStringLiteral ( firstArgument )
242
244
) {
243
245
return
244
246
}
You can’t perform that action at this time.
0 commit comments