I'm setting up stylelint for a project, everything works as expected when run from the cli:
$ stylelint 'css/**/*.css' --fix
css/style.css
20:18 × Expected newline after ":" with a multi-line declaration declaration-colon-newline-after
...
...
However, when run as an npm script
no output appears (beyond logging the command) and the errors seem to be ignored:
$ npm run stylelint
> project lint:css path/project
> stylelint 'css/**/*.css' --fix
package.json
"scripts": {
...
"stylelint": "stylelint 'css/**/*.css' --fix"
},
Any idea how to get the console output AND exit on errors when stylelint is run as an npm script?