Skip to content

Commit 2a1b637

Browse files
author
Kai Cataldo
authored
Upgrade: ESLint v6.8 (#4138)
1 parent dbba276 commit 2a1b637

File tree

9 files changed

+576
-231
lines changed

9 files changed

+576
-231
lines changed

.eslintrc.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@ extends:
33
- semistandard
44
- plugin:prettier/recommended
55
env:
6-
node: yes
7-
browser: yes
6+
node: true
7+
browser: true
88
parserOptions:
99
ecmaVersion: 5
1010
ecmaFeatures:
11-
globalReturn: no
12-
jsx: no
11+
jsx: false
1312
sourceType: script
1413
rules:
1514
strict:
@@ -31,14 +30,14 @@ overrides:
3130
parserOptions:
3231
ecmaVersion: 2017
3332
env:
34-
browser: no
33+
browser: false
3534

3635
- files:
3736
- test/**/*.{js,mjs}
3837
env:
39-
mocha: yes
38+
mocha: true
4039
globals:
41-
expect: no
40+
expect: readonly
4241
- files:
4342
- bin/*
4443
- lib/**/*.js

browser-entry.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ mocha.setup = function(opts) {
129129
opts = {ui: opts};
130130
}
131131
for (var opt in opts) {
132-
if (opts.hasOwnProperty(opt)) {
132+
if (Object.prototype.hasOwnProperty.call(opts, opt)) {
133133
this[opt](opts[opt]);
134134
}
135135
}

0 commit comments

Comments
 (0)