Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/rules/no-duplicate-attr-inheritance.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down
7 changes: 5 additions & 2 deletions lib/rules/no-unused-refs.js
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,11 @@ module.exports = {
CallExpression(callExpression) {
const firstArgument = callExpression.arguments[0]
if (
callExpression.callee.name !== 'useTemplateRef' ||
!firstArgument
('name' in callExpression.callee &&
callExpression.callee.name !== 'useTemplateRef') ||
!firstArgument ||
(firstArgument.type !== 'Literal' &&
firstArgument.type !== 'TemplateLiteral')
) {
return
}
Expand Down
Loading