File tree 2 files changed +6
-3
lines changed
2 files changed +6
-3
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,11 @@ module.exports = {
237
237
CallExpression ( callExpression ) {
238
238
const firstArgument = callExpression . arguments [ 0 ]
239
239
if (
240
- callExpression . callee . name !== 'useTemplateRef' ||
241
- ! firstArgument
240
+ ( 'name' in callExpression . callee &&
241
+ callExpression . callee . name !== 'useTemplateRef' ) ||
242
+ ! firstArgument ||
243
+ ( firstArgument . type !== 'Literal' &&
244
+ firstArgument . type !== 'TemplateLiteral' )
242
245
) {
243
246
return
244
247
}
You can’t perform that action at this time.
0 commit comments