xo icon indicating copy to clipboard operation
xo copied to clipboard

Add `--fix-dry-run` option

Open jopemachine opened this issue 2 years ago • 0 comments

Fixes #663.

Eslint doesn't expose fixDryRun option in programmatic API. fixDryRun is internally translated to fix option and don't call ESLint.outputFixes. (Ref: https://github.com/eslint/eslint/discussions/15877)

So I think xo could handle this option similarly. fixDryRun is translated to fix option before passing to ESLint constructor, and xo.outputFixes would not be called since the fix option is false.

jopemachine avatar May 14 '22 02:05 jopemachine