fix linting errors

This commit is contained in:
tiagosiebler
2023-02-17 14:06:58 +00:00
parent dd6ef2fea5
commit 8193f5a5ce
7 changed files with 11 additions and 8 deletions

View File

@@ -1,3 +1,6 @@
/* eslint-disable no-unused-vars */
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable @typescript-eslint/no-empty-function */
import { DefaultLogger, WS_KEY_MAP, WebsocketClient } from '../src'; import { DefaultLogger, WS_KEY_MAP, WebsocketClient } from '../src';
// or // or

View File

@@ -38,7 +38,6 @@ import {
WalletFundRecordsReq, WalletFundRecordsReq,
WithdrawRecordsReq, WithdrawRecordsReq,
} from './types'; } from './types';
import { linearPositionModeEnum, positionTpSlModeEnum } from './constants/enum';
import BaseRestClient from './util/BaseRestClient'; import BaseRestClient from './util/BaseRestClient';
/** /**

View File

@@ -166,6 +166,7 @@ export class SpotClientV3 extends BaseRestClient {
symbol, symbol,
orderId, orderId,
limit, limit,
orderCategory,
}); });
} }

View File

@@ -1,3 +1,5 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable no-unused-vars */
// eslint-disable-next-line @typescript-eslint/no-explicit-any // eslint-disable-next-line @typescript-eslint/no-explicit-any
export type LogParams = null | any; export type LogParams = null | any;

View File

@@ -1,5 +1,5 @@
import { API_ERROR_CODE, USDCOptionClient } from '../../../src'; import { API_ERROR_CODE, USDCOptionClient } from '../../../src';
import { successResponseObjectV3 } from '../../response.util'; // import { successResponseObjectV3 } from '../../response.util';
describe('Private USDC Options REST API POST Endpoints', () => { describe('Private USDC Options REST API POST Endpoints', () => {
const API_KEY = process.env.API_KEY_COM; const API_KEY = process.env.API_KEY_COM;

View File

@@ -1,8 +1,5 @@
import { API_ERROR_CODE, USDCPerpetualClient } from '../../../src'; import { API_ERROR_CODE, USDCPerpetualClient } from '../../../src';
import { import { successEmptyResponseObjectV3 } from '../../response.util';
successEmptyResponseObjectV3,
successResponseObjectV3,
} from '../../response.util';
describe('Private USDC Perp REST API POST Endpoints', () => { describe('Private USDC Perp REST API POST Endpoints', () => {
const API_KEY = process.env.API_KEY_COM; const API_KEY = process.env.API_KEY_COM;

View File

@@ -1,8 +1,9 @@
/* eslint-disable @typescript-eslint/no-unused-vars */
/* eslint-disable no-unused-vars */ /* eslint-disable no-unused-vars */
/* eslint-disable @typescript-eslint/no-empty-function */ /* eslint-disable @typescript-eslint/no-empty-function */
import { WebsocketClient, WsClientEvent } from '../src'; import { WebsocketClient, WsClientEvent } from '../src';
export function getSilentLogger(logHint?: string) { export function getSilentLogger(_logHint?: string) {
return { return {
silly: () => {}, silly: () => {},
debug: () => {}, debug: () => {},
@@ -129,7 +130,7 @@ export function logAllEvents(wsClient: WebsocketClient) {
} }
export function promiseSleep(ms: number) { export function promiseSleep(ms: number) {
return new Promise((resolve, reject) => { return new Promise((resolve) => {
setTimeout(resolve, ms); setTimeout(resolve, ms);
}); });
} }