File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -63,7 +63,7 @@ module.exports = {
6363 const options = context . options [ 0 ] || { }
6464 const checkMultiRootNodes = options . checkMultiRootNodes === true
6565
66- /** @type {string | number | boolean | RegExp | BigInt | null } */
66+ /** @type {Literal['value'] } */
6767 let inheritsAttrs = true
6868 /** @type {VReference[] } */
6969 const attrsRefs = [ ]
Original file line number Diff line number Diff line change @@ -237,8 +237,10 @@ module.exports = {
237237 CallExpression ( callExpression ) {
238238 const firstArgument = callExpression . arguments [ 0 ]
239239 if (
240+ callExpression . callee . type !== 'Identifier' ||
240241 callExpression . callee . name !== 'useTemplateRef' ||
241- ! firstArgument
242+ ! firstArgument ||
243+ ! utils . isStringLiteral ( firstArgument )
242244 ) {
243245 return
244246 }
You can’t perform that action at this time.
0 commit comments