I expected npm test to succeed in a fresh clone of the repo, but it throws lint errors about console.log and an unnecessary semicolon.
$ git clone https://github.com/vrudikov/typescript-rest-boilerplate && cd typescript-rest-boilerplate && npm install && npm run swagger && npm run test
Cloning into 'typescript-rest-boilerplate'...
[...]
> typescript-rest-boilerplate@0.0.1 lint /home/alling/typescript-rest-boilerplate
> tslint ./src/**/*.ts ./test/**/*.ts
ERROR: src/controller/hello-admin-controller.ts:34:9 - Calls to 'console.log' are not allowed.
ERROR: src/model/admin.ts:11:2 - Unnecessary semicolon
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! typescript-rest-boilerplate@0.0.1 lint: `tslint ./src/**/*.ts ./test/**/*.ts`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the typescript-rest-boilerplate@0.0.1 lint script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/alling/.npm/_logs/2020-03-04T09_44_56_409Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! typescript-rest-boilerplate@0.0.1 pretest: `cross-env NODE_ENV=test npm run build && npm run lint`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the typescript-rest-boilerplate@0.0.1 pretest script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/alling/.npm/_logs/2020-03-04T09_44_56_421Z-debug.log
I expected
npm test
to succeed in a fresh clone of the repo, but it throws lint errors aboutconsole.log
and an unnecessary semicolon.