diff --git a/packages/eslint-plugin/src/rules/no-redundant-type-constituents.ts b/packages/eslint-plugin/src/rules/no-redundant-type-constituents.ts index 33237a8ae4e..4e737b996b7 100644 --- a/packages/eslint-plugin/src/rules/no-redundant-type-constituents.ts +++ b/packages/eslint-plugin/src/rules/no-redundant-type-constituents.ts @@ -83,6 +83,12 @@ function describeLiteralType(type: ts.Type): string { } if (type.isLiteral()) { + if (typeof type.value === 'object') { + // Print ts.PseudoBigInt + return `${ + type.value.negative ? '-' : '' + }${type.value.base10Value.toString()}n`; + } return type.value.toString(); }