When you run npm test and it fails, you get the test outputs + a single error message, like so:
npm test
npm ERR! Test failed. See above for more details. <
If you don't care about preserving the return code of the linter process, you can always configure your package.json like this:
package.json
{ // ... "scripts": { // ... "lint": "eslint . || true", } }