diff --git a/.eslintrc b/.eslintrc index abd3be7..71a054f 100644 --- a/.eslintrc +++ b/.eslintrc @@ -6,11 +6,7 @@ "rules": { "func-name-matching": 0, "indent": [2, 4], - "max-nested-callbacks": [2, 3], - "max-params": [2, 3], - "max-statements": [2, 20], "no-new-func": [1], - "strict": [0] }, "overrides": [ @@ -18,6 +14,7 @@ "files": "test/**", "rules": { "max-lines-per-function": 0, + "strict": [0] }, }, ], diff --git a/implementation.js b/implementation.js index cc4daec..8d7ba2d 100644 --- a/implementation.js +++ b/implementation.js @@ -25,12 +25,12 @@ module.exports = function bind(that) { return result; } return this; - } else { - return target.apply( - that, - args.concat(slice.call(arguments)) - ); } + return target.apply( + that, + args.concat(slice.call(arguments)) + ); + }; var boundLength = Math.max(0, target.length - args.length); diff --git a/package.json b/package.json index 9b530a0..dd02822 100644 --- a/package.json +++ b/package.json @@ -26,10 +26,10 @@ "email": "raynos2@gmail.com" }, "devDependencies": { - "@ljharb/eslint-config": "^17.1.0", + "@ljharb/eslint-config": "^21.0.0", "covert": "^1.1.1", - "eslint": "^7.3.0", - "tape": "^5.0.1" + "eslint": "=8.8.0", + "tape": "^5.5.3" }, "license": "MIT", "scripts": {