Skip to content

Commit b06421b

Browse files
committed
refactor improve selector
1 parent 986648b commit b06421b

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/rules/no-use-computed-property-like-method.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,7 @@ module.exports = {
225225
},
226226

227227
/** @param {ThisExpression} node */
228-
'ThisExpression[parent.type="MemberExpression"][parent.parent.type="CallExpression"]'(
229-
node
230-
) {
228+
'CallExpression > MemberExpression > ThisExpression'(node) {
231229
if (node.parent.type !== 'MemberExpression') return
232230
if (node.parent.property.type !== 'Identifier') return
233231

0 commit comments

Comments
 (0)