Skip to content

Commit 4d17bed

Browse files
Arthur Cinaderflovilmart
Arthur Cinader
authored andcommitted
lint before test. (#3147)
Also turn on lint cacheing to make this change painless ;) add lint cache to gitignore...
1 parent 143bd11 commit 4d17bed

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ lib/
4444

4545
# cache folder
4646
.cache
47+
.eslintcache
4748

4849
# Mac DS_Store files
4950
.DS_Store

package.json

+2-1
Original file line numberDiff line numberDiff line change
@@ -67,8 +67,9 @@
6767
},
6868
"scripts": {
6969
"dev": "npm run build && node bin/dev",
70-
"lint": "eslint ./",
70+
"lint": "eslint --cache ./",
7171
"build": "babel src/ -d lib/",
72+
"pretest": "npm run lint",
7273
"test": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.2.6} MONGODB_STORAGE_ENGINE=mmapv1 NODE_ENV=test TESTING=1 $COVERAGE_OPTION jasmine",
7374
"test:win": "cross-env MONGODB_VERSION=${MONGODB_VERSION:=3.2.6} MONGODB_STORAGE_ENGINE=mmapv1 NODE_ENV=test TESTING=1 jasmine",
7475
"coverage": "cross-env COVERAGE_OPTION='./node_modules/.bin/istanbul cover' npm test",

0 commit comments

Comments
 (0)