Claude Code provides a headless mode that you can do this exact same thing with:
$ claude -p “fix the eslint in file XYZ”