diff --git a/.eslintrc b/.eslintrc index 2c680d75..779dc032 100644 --- a/.eslintrc +++ b/.eslintrc @@ -16,7 +16,6 @@ "no-continue": 1, "no-magic-numbers": 0, "no-restricted-syntax": [2, "BreakStatement", "DebuggerStatement", "ForInStatement", "LabeledStatement", "WithStatement"], - "operator-linebreak": [2, "before"], }, "overrides": [ diff --git a/lib/utils.js b/lib/utils.js index 4ad6ea27..1e545381 100644 --- a/lib/utils.js +++ b/lib/utils.js @@ -177,6 +177,7 @@ var encode = function encode(str, defaultEncoder, charset, kind, format) { i += 1; c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF)); + /* eslint operator-linebreak: [2, "before"] */ out += hexTable[0xF0 | (c >> 18)] + hexTable[0x80 | ((c >> 12) & 0x3F)] + hexTable[0x80 | ((c >> 6) & 0x3F)] diff --git a/package.json b/package.json index eb9f8dff..7cc0df93 100644 --- a/package.json +++ b/package.json @@ -33,11 +33,11 @@ "side-channel": "^1.0.4" }, "devDependencies": { - "@ljharb/eslint-config": "^19.0.1", + "@ljharb/eslint-config": "^19.1.0", "aud": "^1.1.5", "browserify": "^16.5.2", "eclint": "^2.8.1", - "eslint": "^8.2.0", + "eslint": "^8.4.0", "evalmd": "^0.0.19", "for-each": "^0.3.3", "has-symbols": "^1.0.2", @@ -49,7 +49,7 @@ "qs-iconv": "^1.0.4", "safe-publish-latest": "^2.0.0", "safer-buffer": "^2.1.2", - "tape": "^5.3.1" + "tape": "^5.3.2" }, "scripts": { "prepublishOnly": "safe-publish-latest && npm run dist",