Skip to content

Commit 96eaeaa

Browse files
committed
fix
1 parent 6937e52 commit 96eaeaa

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/rule.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,15 +222,15 @@ export const codegen: eslint.Rule.RuleModule = {
222222
message += hunk.lines.join('\n')
223223
const startPosition = position(range[0])
224224

225+
const fix: Parameters<typeof context.report>[0]['fix'] = fixer => fixer.replaceTextRange(range, normalise(result.right) + os.EOL)
225226
context.report({
226227
message,
227228
loc: {
228229
start: {line: startPosition.line + hunk.oldStart, column: 0},
229230
end: {line: startPosition.line + hunk.oldLines, column: 0},
230231
},
231-
// suggest: [
232-
// {fix: fixer => fixer.replaceTextRange()}
233-
// ]
232+
fix,
233+
// todo: fix or suggest based on an option
234234
})
235235
}
236236
}

0 commit comments

Comments
 (0)