Skip to content

Commit

Permalink
fixes #5: improve autofix (#6)
Browse files Browse the repository at this point in the history
- in some project setups node.start / node.end is undefined,
  and results in the auto fix outputing invalid code
  • Loading branch information
mnahkies committed Feb 23, 2021
1 parent 3d00803 commit 147d090
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rules/no-smart-quotes.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ module.exports = {
}

return [
fixer.replaceTextRange([node.start, node.end], fixed),
fixer.replaceText(node, fixed),
];
},
});
Expand Down

0 comments on commit 147d090

Please sign in to comment.