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,
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,
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.