Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 698f240

Browse filesBrowse files
ntnyqFloEdelmann
andauthored
fix: fix typecheck (#2707)
Co-authored-by: Flo Edelmann <git@flo-edelmann.de>
1 parent 256aa9f commit 698f240
Copy full SHA for 698f240

File tree

2 files changed

+4
-2
lines changed
Filter options

2 files changed

+4
-2
lines changed

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

Copy file name to clipboardExpand all lines: lib/rules/no-duplicate-attr-inheritance.js
+1-1Lines changed: 1 addition & 1 deletion
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

Copy file name to clipboardExpand all lines: lib/rules/no-unused-refs.js
+3-1Lines changed: 3 additions & 1 deletion
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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.