We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 256aa9f commit 698f240Copy full SHA for 698f240
lib/rules/no-duplicate-attr-inheritance.js
@@ -63,7 +63,7 @@ module.exports = {
63
const options = context.options[0] || {}
64
const checkMultiRootNodes = options.checkMultiRootNodes === true
65
66
- /** @type {string | number | boolean | RegExp | BigInt | null} */
+ /** @type {Literal['value']} */
67
let inheritsAttrs = true
68
/** @type {VReference[]} */
69
const attrsRefs = []
lib/rules/no-unused-refs.js
@@ -237,8 +237,10 @@ module.exports = {
237
CallExpression(callExpression) {
238
const firstArgument = callExpression.arguments[0]
239
if (
240
+ callExpression.callee.type !== 'Identifier' ||
241
callExpression.callee.name !== 'useTemplateRef' ||
- !firstArgument
242
+ !firstArgument ||
243
+ !utils.isStringLiteral(firstArgument)
244
) {
245
return
246
}
0 commit comments