This solves the same problem as https://github.com/prettier/prettier/pull/2386, but at lint-time, rather than only on Travis.