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 stringObject = new String("Hello world");
const numberObject = new Number(33);
const booleanObject = new Boolean(false);
const stringObject2 = new String;
const numberObject2 = new Number;
const booleanObject2 = new Boolean;const text = String(someValue);
const num = Number(someValue);
const object = new MyString();Popular · 1 of 50
Disallow new operators with the String, Number, and Boolean objects
const stringObject = new String("Hello world");
const numberObject = new Number(33);
const booleanObject = new Boolean(false);
const stringObject2 = new String;
const numberObject2 = new Number;
const booleanObject2 = new Boolean;const text = String(someValue);
const num = Number(someValue);
const object = new MyString();