From ee27ee02ea9cd4faa9ba4b5157d72e2abc76fddd Mon Sep 17 00:00:00 2001 From: Arthur Cinader Date: Wed, 30 Nov 2016 13:58:35 -0800 Subject: [PATCH] lint before test. Also turn on lint cacheing to make this change painless ;) add lint cache to gitignore... --- .gitignore | 1 + package.json | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 2af112bfb3..763f38bea5 100644 --- a/.gitignore +++ b/.gitignore @@ -44,6 +44,7 @@ lib/ # cache folder .cache +.eslintcache # Mac DS_Store files .DS_Store diff --git a/package.json b/package.json index 55b37c120d..8c2331f1df 100644 --- a/package.json +++ b/package.json @@ -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",