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.
function foo1() {
var bar,
baz;
const qux = true,
foobar = false;
}
function foo2() {
var bar,
qux;
if (baz) {
qux = true;
}
}
function foo3(){
let bar = true,
baz = false;
}
class C {
static {
var foo, bar;
let baz, qux;
}
}function foo1() {
var bar,
baz;
}
function foo2(){
var bar = 1,
baz = 2;
qux();
var qux = 3,
quux;
}
class C {
static {
var foo, bar;
let baz, qux;
doSomething();
let quux;
var quuux;
}
}Popular · 1 of 45
Enforce variables to be declared either together or separately in functions
function foo1() {
var bar,
baz;
const qux = true,
foobar = false;
}
function foo2() {
var bar,
qux;
if (baz) {
qux = true;
}
}
function foo3(){
let bar = true,
baz = false;
}
class C {
static {
var foo, bar;
let baz, qux;
}
}function foo1() {
var bar,
baz;
}
function foo2(){
var bar = 1,
baz = 2;
qux();
var qux = 3,
quux;
}
class C {
static {
var foo, bar;
let baz, qux;
doSomething();
let quux;
var quuux;
}
}