tools
tools copied to clipboard
📎Suppress code action: Retain whitespace
Description
Improve the suppress code action to retain the indent level:
function () {
const lineOfCode = node && node.loc ? node.loc.start.line : "";
}
// becomes
function () {
// rome-ignore lint/style/useOptionalChain: suppressed
const lineOfCode = node && node.loc ? node.loc.start.line : "";
}
We should keep any leading whitespace before the token
👋 @rome/staff please triage this issue by adding one of the following labels: S-Bug: confirmed, S-Planned , S-Wishlist or umbrella