Skip to content

Commit

Permalink
fix(eslint-plugin-experience): revert fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode committed Nov 2, 2023
1 parent 60c85d0 commit c7669ad
Showing 1 changed file with 2 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,12 @@ module.exports = {
const members = Array.from(node?.body?.body ?? []);

members.forEach(member => {
console.log(member);

if (member?.key?.type === `PrivateIdentifier`) {
context.report({
node: node,
message: `Please don't use "#${member?.key?.name}" instead of "private ${member?.key?.name}"`,
fix: fixer => {
const [start] = member.range ?? [];

return fixer.replaceTextRange(
[start, start + 1],
'private ',
);
},
});
}
});
Expand Down

0 comments on commit c7669ad

Please sign in to comment.