Skip to content

Commit

Permalink
fix(eslint-plugin): update code to use estree range instead of ts pos…
Browse files Browse the repository at this point in the history
…/end #4723
  • Loading branch information
armano2 committed Apr 6, 2022
1 parent de68e5e commit 455bc3e
Showing 1 changed file with 4 additions and 4 deletions.
Expand Up @@ -171,8 +171,8 @@ export default util.createRule<Options, MessageIds>({
messageId: 'unnecessaryAssertion',
fix(fixer) {
return fixer.removeRange([
originalNode.expression.end,
originalNode.end,
node.expression.range[1],
node.range[1],
]);
},
});
Expand Down Expand Up @@ -217,8 +217,8 @@ export default util.createRule<Options, MessageIds>({
messageId: 'contextuallyUnnecessary',
fix(fixer) {
return fixer.removeRange([
originalNode.expression.end,
originalNode.end,
node.expression.range[1],
node.range[1],
]);
},
});
Expand Down

0 comments on commit 455bc3e

Please sign in to comment.