Skip to content

Commit 698f240

Browse files
ntnyqFloEdelmann
andauthored
fix: fix typecheck (#2707)
Co-authored-by: Flo Edelmann <[email protected]>
1 parent 256aa9f commit 698f240

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

lib/rules/no-duplicate-attr-inheritance.js

+1-1
Original file line numberDiff line numberDiff 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 = []

lib/rules/no-unused-refs.js

+3-1
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)