Rules
Every rule from ESLint, Oxlint and Biome. Pick a rule to see its example. Reach is the weekly npm downloads of the presets that enable a rule; trend is its change over the last quarter.
Every rule from ESLint, Oxlint and Biome. Pick a rule to see its example. Reach is the weekly npm downloads of the presets that enable a rule; trend is its change over the last quarter.
const x = function () {
foo();
}.bind(bar);
const y = (() => {
foo();
}).bind(bar);
const z = (() => {
this.foo();
}).bind(bar);
const a = function () {
(function () {
this.foo();
}());
}.bind(bar);
const b = function () {
function foo() {
this.bar();
}
}.bind(baz);// useless bind
const boundGetName = (function getName() {
return "ESLint";
}).bind({ name: "ESLint" });
console.log(boundGetName()); // "ESLint"Popular · 1 of 50
const x = function () {
foo();
}.bind(bar);
const y = (() => {
foo();
}).bind(bar);
const z = (() => {
this.foo();
}).bind(bar);
const a = function () {
(function () {
this.foo();
}());
}.bind(bar);
const b = function () {
function foo() {
this.bar();
}
}.bind(baz);// useless bind
const boundGetName = (function getName() {
return "ESLint";
}).bind({ name: "ESLint" });
console.log(boundGetName()); // "ESLint"