Skip to content

Conversation

@pattyjogal
Copy link
Contributor

An issue I ran into when writing an Emacs function for xo auto-fixing my buffer is when the stdin passed to xo has no code issues, the command xo --stdin --fix will return undefined, which is a pain in the side. This small fix should hopefully alleviate that with minimal side effects.

I couldn't find any documentation stating that was to be the desired behavior, and I did find this issue with the same problem from a couple years back: #245

Let me know if I'm PR-ing the wrong project, and I should be investigating ESLint instead!

@sindresorhus sindresorhus changed the title --stdin --fix formatter will now always return code Make --stdin --fix always return the code even if nothing was fixed Apr 29, 2019
@sindresorhus sindresorhus merged commit ec51d18 into xojs:master Apr 29, 2019
@pattyjogal pattyjogal deleted the stdin_fix_consistency_patch branch October 10, 2019 19:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants