Skip to content

Commit f399189

Browse files
committed
[Dev Deps] backport updates from main
1 parent b522d2e commit f399189

File tree

4 files changed

+19
-16
lines changed

4 files changed

+19
-16
lines changed

.eslintignore

Lines changed: 0 additions & 2 deletions
This file was deleted.

.eslintrc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,23 @@
33

44
"extends": "@ljharb",
55

6+
"ignorePatterns": [
7+
"dist/",
8+
],
9+
610
"rules": {
711
"complexity": 0,
812
"consistent-return": 1,
9-
"func-name-matching": 0,
13+
"func-name-matching": 0,
1014
"id-length": [2, { "min": 1, "max": 25, "properties": "never" }],
1115
"indent": [2, 4],
1216
"max-lines-per-function": [2, { "max": 150 }],
13-
"max-params": [2, 14],
17+
"max-params": [2, 15],
1418
"max-statements": [2, 52],
1519
"multiline-comment-style": 0,
1620
"no-continue": 1,
1721
"no-magic-numbers": 0,
1822
"no-restricted-syntax": [2, "BreakStatement", "DebuggerStatement", "ForInStatement", "LabeledStatement", "WithStatement"],
19-
"operator-linebreak": [2, "before"],
2023
},
2124

2225
"overrides": [

lib/utils.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -177,6 +177,7 @@ var encode = function encode(str, defaultEncoder, charset, kind, format) {
177177

178178
i += 1;
179179
c = 0x10000 + (((c & 0x3FF) << 10) | (string.charCodeAt(i) & 0x3FF));
180+
/* eslint operator-linebreak: [2, "before"] */
180181
out += hexTable[0xF0 | (c >> 18)]
181182
+ hexTable[0x80 | ((c >> 12) & 0x3F)]
182183
+ hexTable[0x80 | ((c >> 6) & 0x3F)]

package.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -29,34 +29,35 @@
2929
"engines": {
3030
"node": ">=0.6"
3131
},
32-
"dependencies": {},
3332
"devDependencies": {
34-
"@ljharb/eslint-config": "^17.3.0",
35-
"aud": "^1.1.3",
33+
"@ljharb/eslint-config": "^20.1.0",
34+
"aud": "^1.1.5",
3635
"browserify": "^16.5.2",
3736
"eclint": "^2.8.1",
38-
"eslint": "^7.17.0",
37+
"eslint": "^8.6.0",
3938
"evalmd": "^0.0.19",
4039
"for-each": "^0.3.3",
41-
"has-symbols": "^1.0.1",
40+
"has-symbols": "^1.0.2",
4241
"iconv-lite": "^0.5.1",
42+
"in-publish": "^2.0.1",
4343
"mkdirp": "^0.5.5",
4444
"nyc": "^10.3.2",
45-
"object-inspect": "^1.9.0",
45+
"object-inspect": "^1.12.0",
4646
"qs-iconv": "^1.0.4",
47-
"safe-publish-latest": "^1.1.4",
47+
"safe-publish-latest": "^2.0.0",
4848
"safer-buffer": "^2.1.2",
49-
"tape": "^5.1.1"
49+
"tape": "^5.4.0"
5050
},
5151
"scripts": {
52-
"prepublish": "safe-publish-latest && npm run dist",
52+
"prepublishOnly": "safe-publish-latest && npm run dist",
53+
"prepublish": "not-in-publish || npm run prepublishOnly",
5354
"pretest": "npm run --silent readme && npm run --silent lint",
5455
"test": "npm run tests-only",
5556
"tests-only": "nyc tape 'test/**/*.js'",
5657
"posttest": "aud --production",
5758
"readme": "evalmd README.md",
58-
"postlint": "eclint check * lib/* test/*",
59-
"lint": "eslint lib/*.js test/*.js",
59+
"postlint": "eclint check * lib/* test/* !dist/*",
60+
"lint": "eslint .",
6061
"dist": "mkdirp dist && browserify --standalone Qs lib/index.js > dist/qs.js"
6162
},
6263
"license": "BSD-3-Clause",

0 commit comments

Comments
 (0)