Skip to content

Commit cc57d87

Browse files
feat: update error loc to key in no-dupe-class-members (#20259)
1 parent a1f4e52 commit cc57d87

File tree

2 files changed

+120
-40
lines changed

2 files changed

+120
-40
lines changed

lib/rules/no-dupe-class-members.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ module.exports = {
106106

107107
if (isDuplicate) {
108108
context.report({
109-
node,
109+
loc: node.key.loc,
110110
messageId: "unexpected",
111111
data: { name },
112112
});

0 commit comments

Comments
 (0)