build(all): run linter before test script
MODIFY
package.json
package.json
"build": "lerna run build",
"benchmark": "make -C benchmarks",
"watch": "lerna run --parallel --stream watch",
- "lint": "tslint --config tslint.json",
+ "lint": "lerna run lint",
+ "pretest": "yarn lint",
"test": "if-env IS_TRAVIS_CI=true && yarn test:ci || yarn test:dev",
"test:ci": "jest --expand --coverage --runInBand",
"test:dev": "SCOPE=unit jest --expand --coverage",

MODIFY
packages/core/package.json
packages/core/package.json
"watch": "tsc -w",
"build": "tsc",
"clean": "rimraf dist",
+ "lint": "tslint --config ../../tslint.json --project ./",
"test": "jest --config ../../jest.config.js",
"prepack": "cp ../../README.md ./"
},

MODIFY
packages/middleware-body/package.json
packages/middleware-body/package.json
"start": "yarn watch",
"watch": "tsc -w",
"build": "tsc",
+ "lint": "tslint --config ../../tslint.json --project ./",
"test": "jest --config ../../jest.config.js",
"clean": "rimraf dist"
},

MODIFY
packages/middleware-joi/package.json
packages/middleware-joi/package.json
"start": "yarn watch",
"watch": "tsc -w",
"build": "tsc",
+ "lint": "tslint --config ../../tslint.json --project ./",
"test": "jest --config ../../jest.config.js",
"clean": "rimraf dist"
},

MODIFY
packages/middleware-jwt/package.json
packages/middleware-jwt/package.json
"watch": "tsc -w",
"build": "tsc",
"clean": "rimraf dist",
+ "lint": "tslint --config ../../tslint.json --project ./",
"test": "jest --config ../../jest.config.js"
},
"files": [

MODIFY
packages/middleware-logger/package.json
packages/middleware-logger/package.json
"watch": "tsc -w",
"build": "tsc",
"clean": "rimraf dist",
+ "lint": "tslint --config ../../tslint.json --project ./",
"test": "jest --config ../../jest.config.js"
},
"files": [

build(all): run linter before test script