Skip to content

Commit 4779d5c

Browse files
committed
fix: classic-decorator-no-classic-methods matching private identifiers
1 parent 366e91d commit 4779d5c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/rules/classic-decorator-no-classic-methods.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ module.exports = {
5656
if (!inClassExtends) {
5757
return;
5858
}
59-
if (node.object.type !== 'ThisExpression') {
59+
if (node.object.type !== 'ThisExpression' || node.property.type === 'PrivateIdentifier') {
6060
return;
6161
}
6262

0 commit comments

Comments
 (0)