Permalink
Browse files

lint before test. (#3147)

Also turn on lint cacheing to make this change painless ;)
add lint cache to gitignore...
  • Loading branch information...
1 parent 143bd11 commit 4d17bed374649c83cc631a7d16073d7b88809639 @acinader acinader committed with flovilmart Nov 30, 2016
Showing with 3 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +2 −1 package.json
View
@@ -44,6 +44,7 @@ lib/
# cache folder
.cache
+.eslintcache
# Mac DS_Store files
.DS_Store
View
@@ -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",

0 comments on commit 4d17bed

Please sign in to comment.