-
-
Notifications
You must be signed in to change notification settings - Fork 411
Open
Labels
Description
Description
Prefer bigint literal over BigInt
wrapper.
Examples
// ❌
BigInt('1')
// ✅
1n
// ❌
BigInt(1)
// ✅
1n
// ❌
BigInt(1)
// ✅
1n
// ❌
BigInt(9007199254740993)
// ✅ (No auto fix)
9007199254740992n
Proposed rule name
prefer-bigint-literal
Additional Info
No response
sindresorhus, BridgeAR, lishaduck and fregante