Skip to content

Commit

Permalink
update dependencies, some updates for eslint-plugin-es-x
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Nov 18, 2024
1 parent 46a896c commit 222d74f
Show file tree
Hide file tree
Showing 7 changed files with 34 additions and 24 deletions.
19 changes: 11 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/core-js/internals/function-apply.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
});
2 changes: 1 addition & 1 deletion packages/core-js/internals/function-call.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
};
1 change: 1 addition & 0 deletions packages/core-js/internals/function-uncurry-this.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
6 changes: 6 additions & 0 deletions tests/eslint/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)/**',
Expand Down
24 changes: 12 additions & 12 deletions tests/eslint/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions tests/eslint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 222d74f

Please sign in to comment.