Skip to content

Commit

Permalink
Upgrade: ESLint v6.8 (#4138)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaicataldo authored Feb 1, 2020
1 parent dbba276 commit 2a1b637
Show file tree
Hide file tree
Showing 9 changed files with 576 additions and 231 deletions.
13 changes: 6 additions & 7 deletions .eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@ extends:
- semistandard
- plugin:prettier/recommended
env:
node: yes
browser: yes
node: true
browser: true
parserOptions:
ecmaVersion: 5
ecmaFeatures:
globalReturn: no
jsx: no
jsx: false
sourceType: script
rules:
strict:
Expand All @@ -31,14 +30,14 @@ overrides:
parserOptions:
ecmaVersion: 2017
env:
browser: no
browser: false

- files:
- test/**/*.{js,mjs}
env:
mocha: yes
mocha: true
globals:
expect: no
expect: readonly
- files:
- bin/*
- lib/**/*.js
Expand Down
2 changes: 1 addition & 1 deletion browser-entry.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ mocha.setup = function(opts) {
opts = {ui: opts};
}
for (var opt in opts) {
if (opts.hasOwnProperty(opt)) {
if (Object.prototype.hasOwnProperty.call(opts, opt)) {
this[opt](opts[opt]);
}
}
Expand Down
Loading

0 comments on commit 2a1b637

Please sign in to comment.