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",