I came across this in np as of today, not sure why it never failed earlier.
Apparently, XO expects 4 indentations instead of 5 in this code block. Right here and here. I'm not sure if XO can actually do something about that as it looks like it's an ESLint rule.
Sorry for the quick explanation but don't have much time now to look into it.
Seems like it's because of https://github.com/eslint/eslint/issues/7320.
I've disabled it for now: https://github.com/sindresorhus/eslint-config-xo/commit/023a7ab5323e5175d4fcd8ca50ed07779473ca8a
Thanks!
Seems like it will be fixed in ESLint 4 in a couple of months, so we can just leave this here until then.
New version is out: https://github.com/xojs/xo/releases/tag/v0.20.0
Most helpful comment
Seems like it will be fixed in ESLint 4 in a couple of months, so we can just leave this here until then.