Run linting in test script (for CI)

This commit is contained in:
Jake 2017-04-18 12:58:43 +01:00 committed by GitHub
parent e99e796af2
commit 90d9d9e8e2

View file

@ -10,7 +10,7 @@
"start": "node ./dist/index.js", "start": "node ./dist/index.js",
"prepublish": "typings install && npm run build", "prepublish": "typings install && npm run build",
"build": "tsc", "build": "tsc",
"test": "npm run build && npm run mocha && nsp check", "test": "npm run build && npm run lint && npm run mocha && nsp check",
"mocha": "mocha --compilers ts:ts-node/register --require scripts/test-helper.js --recursive --bail tests/**/*.test.ts tests/*.test.ts", "mocha": "mocha --compilers ts:ts-node/register --require scripts/test-helper.js --recursive --bail tests/**/*.test.ts tests/*.test.ts",
"lint": "tslint src/**/*.ts" "lint": "tslint src/**/*.ts"
}, },