π Prefer BigInt literals over the constructor.
πΌ This rule is enabled in the following configs: β
recommended, βοΈ unopinionated.
π§π‘ This rule is automatically fixable by the --fix CLI option and manually fixable by editor suggestions.
Use 1n instead of BigInt(1).
// β
const bigint = BigInt(1);
// β
const bigint = 1n;// β
const bigint = BigInt('1');
// β
const bigint = 1n;