From 222d74f446f7587ce8a747432773f7f5b625a486 Mon Sep 17 00:00:00 2001 From: Denis Pushkarev Date: Mon, 18 Nov 2024 10:08:44 +0700 Subject: [PATCH] update dependencies, some updates for `eslint-plugin-es-x` --- package-lock.json | 19 ++++++++------- packages/core-js/internals/function-apply.js | 2 +- packages/core-js/internals/function-call.js | 2 +- .../internals/function-uncurry-this.js | 1 + tests/eslint/eslint.config.js | 6 +++++ tests/eslint/package-lock.json | 24 +++++++++---------- tests/eslint/package.json | 4 ++-- 7 files changed, 34 insertions(+), 24 deletions(-) diff --git a/package-lock.json b/package-lock.json index f81b0f6a6b5a..26ec7b888c87 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1956,13 +1956,16 @@ } }, "node_modules/cipher-base": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.4.tgz", - "integrity": "sha512-Kkht5ye6ZGmwv40uUDZztayT2ThLQGfnj/T71N/XzeZeo3nf8foyW7zGTsPYkEya3m5f3cAypH+qe7YOrM1U2Q==", + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/cipher-base/-/cipher-base-1.0.5.tgz", + "integrity": "sha512-xq7ICKB4TMHUx7Tz1L9O2SGKOhYMOTR32oir45Bq28/AQTpHogKgHcoYFSdRbMtddl+ozNXfXY9jWcgYKmde0w==", "license": "MIT", "dependencies": { - "inherits": "^2.0.1", - "safe-buffer": "^5.0.1" + "inherits": "^2.0.4", + "safe-buffer": "^5.2.1" + }, + "engines": { + "node": ">= 0.10" } }, "node_modules/class-utils": { @@ -4215,9 +4218,9 @@ "license": "MIT" }, "node_modules/qs": { - "version": "6.13.0", - "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.0.tgz", - "integrity": "sha512-+38qI9SOr8tfZ4QmJNplMUxqjbe7LKvvZgWdExBOmd+egZTtjLB67Gu0HRX3u/XOq7UU2Nx6nsjvS16Z9uwfpg==", + "version": "6.13.1", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.13.1.tgz", + "integrity": "sha512-EJPeIn0CYrGu+hli1xilKAPXODtJ12T0sP63Ijx2/khC2JtuaN3JyNIpvmnkmaEtha9ocbG4A4cMcr+TvqvwQg==", "license": "BSD-3-Clause", "dependencies": { "side-channel": "^1.0.6" diff --git a/packages/core-js/internals/function-apply.js b/packages/core-js/internals/function-apply.js index 3d4e56904f9d..ad3facaf0873 100644 --- a/packages/core-js/internals/function-apply.js +++ b/packages/core-js/internals/function-apply.js @@ -5,7 +5,7 @@ var FunctionPrototype = Function.prototype; var apply = FunctionPrototype.apply; var call = FunctionPrototype.call; -// eslint-disable-next-line es/no-reflect -- safe +// eslint-disable-next-line es/no-function-prototype-bind, es/no-reflect -- safe module.exports = typeof Reflect == 'object' && Reflect.apply || (NATIVE_BIND ? call.bind(apply) : function () { return call.apply(apply, arguments); }); diff --git a/packages/core-js/internals/function-call.js b/packages/core-js/internals/function-call.js index 998b4de3d60e..122c3f43403b 100644 --- a/packages/core-js/internals/function-call.js +++ b/packages/core-js/internals/function-call.js @@ -2,7 +2,7 @@ var NATIVE_BIND = require('../internals/function-bind-native'); var call = Function.prototype.call; - +// eslint-disable-next-line es/no-function-prototype-bind -- safe module.exports = NATIVE_BIND ? call.bind(call) : function () { return call.apply(call, arguments); }; diff --git a/packages/core-js/internals/function-uncurry-this.js b/packages/core-js/internals/function-uncurry-this.js index 2fd36ec31f14..cd1c9ee076d0 100644 --- a/packages/core-js/internals/function-uncurry-this.js +++ b/packages/core-js/internals/function-uncurry-this.js @@ -3,6 +3,7 @@ var NATIVE_BIND = require('../internals/function-bind-native'); var FunctionPrototype = Function.prototype; var call = FunctionPrototype.call; +// eslint-disable-next-line es/no-function-prototype-bind -- safe var uncurryThisWithBind = NATIVE_BIND && FunctionPrototype.bind.bind(call, call); module.exports = NATIVE_BIND ? uncurryThisWithBind : function (fn) { diff --git a/tests/eslint/eslint.config.js b/tests/eslint/eslint.config.js index 3c096483720d..8f74b3348e39 100644 --- a/tests/eslint/eslint.config.js +++ b/tests/eslint/eslint.config.js @@ -1823,6 +1823,12 @@ export default [ ], rules: disable(forbidES5BuiltIns), }, + { + files: [ + 'packages/core-js?(-pure)/**/instance/**', + ], + rules: disable(forbidModernBuiltIns), + }, { files: [ 'tests/@(helpers|unit-@(global|pure)|wpt-url-resources)/**', diff --git a/tests/eslint/package-lock.json b/tests/eslint/package-lock.json index e9b3a6ef3303..2e2e2990e163 100644 --- a/tests/eslint/package-lock.json +++ b/tests/eslint/package-lock.json @@ -15,9 +15,9 @@ "eslint-plugin-array-func": "^5.0.2", "eslint-plugin-canonical": "^5.0.0", "eslint-plugin-depend": "^0.12.0", - "eslint-plugin-es-x": "^8.2.0", + "eslint-plugin-es-x": "^8.3.0", "eslint-plugin-import-x": "^4.4.2", - "eslint-plugin-jsonc": "^2.18.1", + "eslint-plugin-jsonc": "^2.18.2", "eslint-plugin-n": "^17.13.2", "eslint-plugin-package-json": "^0.15.6", "eslint-plugin-promise": "^7.1.0", @@ -3991,9 +3991,9 @@ } }, "node_modules/eslint-compat-utils": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/eslint-compat-utils/-/eslint-compat-utils-0.6.0.tgz", - "integrity": "sha512-1vVBdI/HLS6HTHVQCJGlN+LOF0w1Rs/WB9se23mQr84cRM0iMM8PulMFFhQdQ1BvS0cGwjpis4xziI91Rk0l6g==", + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/eslint-compat-utils/-/eslint-compat-utils-0.6.3.tgz", + "integrity": "sha512-9IDdksh5pUYP2ZLi7mOdROxVjLY8gY2qKxprmrJ/5Dyqud7M/IFKxF3o0VLlRhITm1pK6Fk7NiBxE39M/VlUcw==", "dev": true, "license": "MIT", "dependencies": { @@ -4167,9 +4167,9 @@ } }, "node_modules/eslint-plugin-es-x": { - "version": "8.2.0", - "resolved": "https://registry.npmjs.org/eslint-plugin-es-x/-/eslint-plugin-es-x-8.2.0.tgz", - "integrity": "sha512-BCGnioKYSOZYHWCbXuLgYaNcbweRibg7lzj8YHpeXo7VsBkCwXkkYBmVkqN4IVztP3lFcJ4kqFp65+FM36PAQg==", + "version": "8.3.0", + "resolved": "https://registry.npmjs.org/eslint-plugin-es-x/-/eslint-plugin-es-x-8.3.0.tgz", + "integrity": "sha512-vHX/ZaWCnsq1aWjN0T9hA8rbtbR+f7Gdqi+BF2V+E1pTzORPVEpYSNYPgMX4rrW2gxct+W75wS9s0dTIdr2SMw==", "dev": true, "funding": [ "https://github.com/sponsors/ota-meshi", @@ -4179,7 +4179,7 @@ "dependencies": { "@eslint-community/eslint-utils": "^4.1.2", "@eslint-community/regexpp": "^4.12.1", - "eslint-compat-utils": "^0.6.0" + "eslint-compat-utils": "^0.6.3" }, "engines": { "node": "^14.18.0 || >=16.0.0" @@ -4240,9 +4240,9 @@ } }, "node_modules/eslint-plugin-jsonc": { - "version": "2.18.1", - "resolved": "https://registry.npmjs.org/eslint-plugin-jsonc/-/eslint-plugin-jsonc-2.18.1.tgz", - "integrity": "sha512-6qY8zDpxOwPQNcr8eZ+RxwGX6IPHws5/Qef7aBEjER8rB9+UMB6zQWVIVcbP7xzFmEMHAesNFPe/sIlU4c78dg==", + "version": "2.18.2", + "resolved": "https://registry.npmjs.org/eslint-plugin-jsonc/-/eslint-plugin-jsonc-2.18.2.tgz", + "integrity": "sha512-SDhJiSsWt3nItl/UuIv+ti4g3m4gpGkmnUJS9UWR3TrpyNsIcnJoBRD7Kof6cM4Rk3L0wrmY5Tm3z7ZPjR2uGg==", "dev": true, "license": "MIT", "dependencies": { diff --git a/tests/eslint/package.json b/tests/eslint/package.json index fe2f792303c2..3b96ea72c4e3 100644 --- a/tests/eslint/package.json +++ b/tests/eslint/package.json @@ -11,9 +11,9 @@ "eslint-plugin-array-func": "^5.0.2", "eslint-plugin-canonical": "^5.0.0", "eslint-plugin-depend": "^0.12.0", - "eslint-plugin-es-x": "^8.2.0", + "eslint-plugin-es-x": "^8.3.0", "eslint-plugin-import-x": "^4.4.2", - "eslint-plugin-jsonc": "^2.18.1", + "eslint-plugin-jsonc": "^2.18.2", "eslint-plugin-n": "^17.13.2", "eslint-plugin-package-json": "^0.15.6", "eslint-plugin-promise": "^7.1.0",