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 a = 1; // declaring a to 1
function getRandomNumber(){
return 4; // chosen by fair dice roll.
// guaranteed to be random.
}
/* A block comment before code */ const b = 2;
const c = 3; /* A block comment after code */// This is a comment above a line of code
const foo = 5;
const bar = 5;
//This is a comment below a line of codePopular · 1 of 50
const a = 1; // declaring a to 1
function getRandomNumber(){
return 4; // chosen by fair dice roll.
// guaranteed to be random.
}
/* A block comment before code */ const b = 2;
const c = 3; /* A block comment after code */// This is a comment above a line of code
const foo = 5;
const bar = 5;
//This is a comment below a line of code