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.
Math.min(Math.max(100, x), 0);
Math.max(1000, Math.min(0, z));Math.max(0, Math.min(100, x));
Math.min(1000, Math.max(0, z));Popular · 1 of 6
Checks whether the clamp function Math.min(Math.max(x, y), z) always evaluates to a constant result because the arguments are in the wrong order.
Math.min(Math.max(100, x), 0);
Math.max(1000, Math.min(0, z));Math.max(0, Math.min(100, x));
Math.min(1000, Math.max(0, z));