Update ESlint

This commit is contained in:
larabr
2023-02-21 14:54:46 +01:00
parent 1b17132631
commit 705f238e1e
53 changed files with 2258 additions and 3673 deletions

View File

@@ -1,8 +1,9 @@
import util from '../util';
import BigInteger from './native.interface';
const detectBigInt = () => typeof BigInt !== 'undefined';
async function getBigInteger() {
if (util.detectBigInt()) {
if (detectBigInt()) {
return BigInteger;
} else {
const { default: BigInteger } = await import('./bn.interface');
@@ -10,5 +11,4 @@ async function getBigInteger() {
}
}
// eslint-disable-next-line import/prefer-default-export
export { getBigInteger };