Skip to content

Commit c47590e

Browse files
committed
fix: use :not selector
1 parent 9f298ed commit c47590e

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

lib/rules/no-ref-as-operand.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -233,10 +233,7 @@ module.exports = {
233233
},
234234
// `${refValue}`
235235
/** @param {Identifier} node */
236-
'TemplateLiteral>Identifier'(node) {
237-
if (node.parent.type === 'TaggedTemplateExpression') {
238-
return
239-
}
236+
':not(TaggedTemplateExpression)>TemplateLiteral>Identifier'(node) {
240237
reportIfRefWrapped(node)
241238
},
242239
// refValue.x

0 commit comments

Comments
 (0)