Is there a way to run "eslint --fix" and output the fixes to another file?

Viewed 530

Is there a way to run eslint --fix foo.js and not do the fixes in-place? I want the fixed file to be saved in another file. Thanks,

1 Answers

As far as I know there is no such option in cli. And I expect this feature will never be added. If you really need the fixed code to be written to another file, you can use eslint's node api to pull together a customized solution.

Related