lint before test. (#3147)

Also turn on lint cacheing to make this change painless ;)
add lint cache to gitignore...
This commit is contained in:
Arthur Cinader
2016-11-30 14:58:59 -08:00
committed by Florent Vilmart
parent 143bd11638
commit 4d17bed374
2 changed files with 3 additions and 1 deletions

1
.gitignore vendored
View File

@@ -44,6 +44,7 @@ lib/
# cache folder
.cache
.eslintcache
# Mac DS_Store files
.DS_Store

View File

@@ -67,8 +67,9 @@
},
"scripts": {
"dev": "npm run build && node bin/dev",
"lint": "eslint ./",
"lint": "eslint --cache ./",
"build": "babel src/ -d lib/",
"pretest": "npm run lint",
"test": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.2.6} MONGODB_STORAGE_ENGINE=mmapv1 NODE_ENV=test TESTING=1 $COVERAGE_OPTION jasmine",
"test:win": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.2.6} MONGODB_STORAGE_ENGINE=mmapv1 NODE_ENV=test TESTING=1 jasmine",
"coverage": "cross-env COVERAGE_OPTION='./node_modules/.bin/istanbul cover' npm test",