From 7a05bb7482817616243fc89956abf48710d77fea Mon Sep 17 00:00:00 2001 From: Jordan Harband Date: Sun, 5 Dec 2021 09:54:22 -0800 Subject: [PATCH] [Dev Deps] update `eslint`, `@ljharb/eslint-config`, `safe-publish-latest`, `tape` --- .eslintrc | 11 +++-------- index.js | 2 +- package.json | 8 ++++---- 3 files changed, 8 insertions(+), 13 deletions(-) diff --git a/.eslintrc b/.eslintrc index 4fc4b8c..66ef141 100644 --- a/.eslintrc +++ b/.eslintrc @@ -1,24 +1,20 @@ { "root": true, + "extends": "@ljharb", + "rules": { "complexity": 0, "eqeqeq": [2, "always", { "null": "ignore" }], "func-style": [2, "declaration"], "id-length": 0, "indent": [2, 2], - "max-lines": 0, "max-params": [2, 6], "max-statements-per-line": [2, { "max": 2 }], "new-cap": [2, { "capIsNewExceptions": ["GetIntrinsic"] }], "no-magic-numbers": [2, { "ignore": [0, 1] }], - "operator-linebreak": [2, "before"], - }, - "globals": { - "ArrayBuffer": false, - "WeakMap": false, - "WeakSet": false, }, + "overrides": [ { "files": "example/**", @@ -33,7 +29,6 @@ "max-lines-per-function": 0, "max-params": 0, "no-magic-numbers": 0, - "operator-linebreak": [2, "before"], }, }, ], diff --git a/index.js b/index.js index 4c74dfa..cd2610c 100644 --- a/index.js +++ b/index.js @@ -283,7 +283,7 @@ function mapEquiv(a, b, opts, channel) { } function objEquiv(a, b, opts, channel) { - /* eslint max-statements: [2, 100], max-lines-per-function: [2, 120], max-depth: [2, 5] */ + /* eslint max-statements: [2, 100], max-lines-per-function: [2, 120], max-depth: [2, 5], max-lines: [2, 400] */ var i, key; if (typeof a !== typeof b) { return false; } diff --git a/package.json b/package.json index e37fb90..6435a53 100644 --- a/package.json +++ b/package.json @@ -47,17 +47,17 @@ "which-typed-array": "^1.1.7" }, "devDependencies": { - "@ljharb/eslint-config": "^18.0.0", + "@ljharb/eslint-config": "^19.1.0", "aud": "^1.1.5", "auto-changelog": "^2.3.0", - "eslint": "^7.32.0", + "eslint": "^8.4.0", "has-symbols": "^1.0.2", "has-typed-arrays": "^1.0.1", "nyc": "^10.3.2", "object.getownpropertydescriptors": "^2.1.3", - "safe-publish-latest": "^1.1.4", + "safe-publish-latest": "^2.0.0", "semver": "^6.3.0", - "tape": "^5.3.1" + "tape": "^5.3.2" }, "repository": { "type": "git",