Skip to content

Commit

Permalink
[Dev Deps] backport updates from main
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Jan 9, 2022
1 parent 7db8e63 commit 4243fe4
Show file tree
Hide file tree
Showing 9 changed files with 49 additions and 36 deletions.
1 change: 0 additions & 1 deletion .eslintignore

This file was deleted.

21 changes: 18 additions & 3 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,14 @@

"extends": "@ljharb",

"ignorePatterns": [
"dist/",
],

"rules": {
"complexity": 0,
"consistent-return": 1,
"func-name-matching": 0,
"func-name-matching": 0,
"id-length": [2, { "min": 1, "max": 25, "properties": "never" }],
"indent": [2, 4],
"max-lines-per-function": [2, { "max": 150 }],
Expand All @@ -16,6 +20,17 @@
"no-continue": 1,
"no-magic-numbers": 0,
"no-restricted-syntax": [2, "BreakStatement", "DebuggerStatement", "ForInStatement", "LabeledStatement", "WithStatement"],
"operator-linebreak": [2, "before"],
}
},

"overrides": [
{
"files": "test/**",
"rules": {
"function-paren-newline": 0,
"max-lines-per-function": 0,
"max-statements": 0,
"no-extend-native": 0,
},
},
],
}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,6 @@ dist/*
yarn.lock
package-lock.json
npm-shrinkwrap.json

.nyc_output/
coverage/
15 changes: 13 additions & 2 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,15 @@
# gitignore
npm-debug.log
node_modules
.DS_Store

# Only apps should have lockfiles
yarn.lock
package-lock.json
npm-shrinkwrap.json

.nyc_output/
coverage/

bower.json
component.json
.npmignore
.travis.yml
2 changes: 1 addition & 1 deletion lib/parse.js
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ var parseObject = function (chain, val, options, valuesParsed) {
}
}

leaf = obj; // eslint-disable-line no-param-reassign
leaf = obj;
}

return leaf;
Expand Down
2 changes: 1 addition & 1 deletion lib/stringify.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ var isNonNullishPrimitive = function isNonNullishPrimitive(v) {
|| typeof v === 'number'
|| typeof v === 'boolean'
|| typeof v === 'symbol'
|| typeof v === 'bigint'; // eslint-disable-line valid-typeof
|| typeof v === 'bigint';
};

var stringify = function stringify(
Expand Down
1 change: 1 addition & 0 deletions lib/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,7 @@ var encode = function encode(str, defaultEncoder, charset) {

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)]
Expand Down
23 changes: 12 additions & 11 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,33 +29,34 @@
"engines": {
"node": ">=0.6"
},
"dependencies": {},
"devDependencies": {
"@ljharb/eslint-config": "^16.0.0",
"browserify": "^16.5.0",
"@ljharb/eslint-config": "^20.1.0",
"browserify": "^16.5.2",
"covert": "^1.1.1",
"eclint": "^2.8.1",
"eslint": "^6.8.0",
"eslint": "^8.6.0",
"evalmd": "^0.0.19",
"for-each": "^0.3.3",
"has-symbols": "^1.0.1",
"has-symbols": "^1.0.2",
"iconv-lite": "^0.5.1",
"in-publish": "^2.0.1",
"mkdirp": "^0.5.4",
"object-inspect": "^1.7.0",
"object-inspect": "^1.12.0",
"qs-iconv": "^1.0.4",
"safe-publish-latest": "^1.1.4",
"safe-publish-latest": "^2.0.0",
"safer-buffer": "^2.1.2",
"tape": "^5.0.0-next.5"
"tape": "^5.4.0"
},
"scripts": {
"prepublish": "safe-publish-latest && npm run dist",
"prepublishOnly": "safe-publish-latest && npm run dist",
"prepublish": "not-in-publish || npm run prepublishOnly",
"pretest": "npm run --silent readme && npm run --silent lint",
"test": "npm run --silent coverage",
"tests-only": "node test",
"posttest": "npx aud --production",
"readme": "evalmd README.md",
"postlint": "eclint check * lib/* test/*",
"lint": "eslint lib/*.js test/*.js",
"postlint": "eclint check * lib/* test/* !dist/* '!coverage/**' '.nyc_output/**'",
"lint": "eslint .",
"coverage": "covert test",
"dist": "mkdirp dist && browserify --standalone Qs lib/index.js > dist/qs.js"
},
Expand Down
17 changes: 0 additions & 17 deletions test/.eslintrc

This file was deleted.

0 comments on commit 4243fe4

Please sign in to comment.