tools: fix exit code when linting from CI
Checklist
-
tests and code linting passes -
the commit message follows commit guidelines
Affected core subsystem(s)
- tools
Description of change
Before this, if there were lint errors reported by make jslint-ci
, the process would still exit with an exit code of zero.
This commit fixes that to align with make jslint
(exit with code 1 on lint errors).