xo --quiet
reports the errors, but xo --quiet --fix
acts like it fixes them, but it doesn't:
npm init -y
npm install xo
echo "console.log('hello')" > file.ts
npx xo --quiet --fix
No error is outputted, but no files are changed. This is confirmed by another run of xo
$ xo
file.ts:1:21
✖ 1:21 Missing semicolon. @typescript-eslint/semi
1 error
Omitting --quiet
will fix it:
$ xo --fix
// no error
$ xo
// no error
The same ESLint version is able to save those changes when running:
npx eslint file.ts \
--rule '{"@typescript-eslint/semi": "error"}' \
--parser-options '{"sourceType": "module", ecmaVersion:2015}' \
--parser "@typescript-eslint/parser" \
--plugin "@typescript-eslint" \
--fix \
--quiet
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too