Replace hacky code with a custom ESLint formatter
Created by: gaearon
This is not really maintainable.
Instead we should write a custom ESLint formatter. The initial version should probably do exactly the same format we support on master, but without the hacky string manipulations.