Skip to content

Commit 0cf3b11

Browse files
committed
removed 'no-prototype-builtins' from eslint
1 parent 9ebf817 commit 0cf3b11

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

.eslintrc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232
"always"
3333
],
3434
"no-control-regex": "off",
35-
"no-prototype-builtins": "off",
3635
"no-console": "off",
3736
"no-unused-vars": [
3837
"error",

lib/models/token-model.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function TokenModel(data, options) {
4747
this.customAttributes = {};
4848

4949
for (var key in data) {
50-
if (data.hasOwnProperty(key) && (modelAttributes.indexOf(key) < 0)) {
50+
if ( Object.prototype.hasOwnProperty.call(data, key) && (modelAttributes.indexOf(key) < 0)) {
5151
this.customAttributes[key] = data[key];
5252
}
5353
}

lib/token-types/bearer-token-type.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ BearerTokenType.prototype.valueOf = function() {
4848
}
4949

5050
for (var key in this.customAttributes) {
51-
if (this.customAttributes.hasOwnProperty(key)) {
51+
if ( Object.prototype.hasOwnProperty.call(this.customAttributes, key) ) {
5252
object[key] = this.customAttributes[key];
5353
}
5454
}

0 commit comments

Comments
 (0)