Skip to content
This repository was archived by the owner on Aug 23, 2019. It is now read-only.

Commit 0ca7cb4

Browse files
committed
standard v9
1 parent 735afe8 commit 0ca7cb4

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

lib/instance/hydrate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ module.exports = function (api) {
5959
if (o instanceof safeTypes[i]) { return false }
6060
}
6161
for (i in safeInstances) {
62-
if (typeof o === safeInstances[i]) { return false }
62+
if (typeof o === safeInstances[i]) { return false } // eslint-disable-line
6363
}
6464
return (o.toString() === '[object Object]')
6565
}

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
"devDependencies": {
3434
"mocha": "^3.0.0",
3535
"should": "^11.0.0",
36-
"standard": "^8.5.0"
36+
"standard": "^9.0.0"
3737
},
3838
"optionalDependencies": {},
3939
"bin": {
@@ -50,7 +50,8 @@
5050
]
5151
},
5252
"scripts": {
53-
"test": "standard && NODE_ENV=test mocha",
53+
"pretest": "standard",
54+
"test": "NODE_ENV=test mocha",
5455
"test:skip-build": "SKIP_BUILD=true NODE_ENV=test mocha"
5556
}
5657
}

test/instances.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ describe('ah-elasticsearch-orm', function () {
2424
person.data.email = specHelper.email()
2525
person.create(function (error) {
2626
should.not.exist(error)
27-
person.data.guid.should.exist
27+
person.data.guid.should.exist // eslint-disable-line
2828
next()
2929
})
3030
})
@@ -69,7 +69,7 @@ describe('ah-elasticsearch-orm', function () {
6969
}
7070
person.create(function (error) {
7171
should.not.exist(error)
72-
person.data.guid.should.exist
72+
person.data.guid.should.exist // eslint-disable-line
7373
next()
7474
})
7575
})

0 commit comments

Comments
 (0)