How to get linting errors on build

I’m looking to get linting errors output at build time like with Gatsby / Create React App. Anyone know if this is possible with Meteor’s build tool? I can’t find anything on it.

Just create a bash script which runs the linter and if it did not return an error, then the build will proceed.