Skip to content

Commit f3f0b8c

Browse files
author
Inwon Kim
committed
Add lint disable
1 parent 87b2ad7 commit f3f0b8c

File tree

4 files changed

+9
-6
lines changed

4 files changed

+9
-6
lines changed

lib/Exception.ts

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
* limitations under the License.
1515
*/
1616

17+
// eslint-disable-next-line max-classes-per-file
1718
const ExceptionCode = {
1819
0: "DATA ERROR",
1920
1: "FORMAT ERROR",

lib/IconService.ts

+6-6
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ export default class IconService {
8282
*/
8383
getTotalSupply(height?: Hash): HttpCall<BigNumber> {
8484
let params;
85-
if (height == undefined) {
85+
if (height === undefined) {
8686
params = null;
8787
} else {
8888
params = { height };
@@ -101,7 +101,7 @@ export default class IconService {
101101
*/
102102
getBalance(address: string, height?: Hash): HttpCall<BigNumber> {
103103
let params;
104-
if (height == undefined) {
104+
if (height === undefined) {
105105
params = { address };
106106
} else {
107107
params = { address, height };
@@ -172,7 +172,7 @@ export default class IconService {
172172
*/
173173
getScoreApi(address: string, height?: Hash): HttpCall<ScoreApiList> {
174174
let params;
175-
if (height == undefined) {
175+
if (height === undefined) {
176176
params = { address };
177177
} else {
178178
params = { address, height };
@@ -196,7 +196,7 @@ export default class IconService {
196196
*/
197197
getScoreStatus(address: string, height?: Hash): HttpCall<ScoreApiList> {
198198
let params;
199-
if (height == undefined) {
199+
if (height === undefined) {
200200
params = { address };
201201
} else {
202202
params = { address, height };
@@ -493,7 +493,7 @@ export default class IconService {
493493
height?: string | BigNumber
494494
): HttpCall<BTPNetworkInfo> {
495495
let params;
496-
if (height == undefined) params = { id };
496+
if (height === undefined) params = { id };
497497
else params = { id, height };
498498

499499
const requestId = Util.getCurrentTime();
@@ -513,7 +513,7 @@ export default class IconService {
513513
height?: string | BigNumber
514514
): HttpCall<BTPNetworkTypeInfo> {
515515
let params;
516-
if (height == undefined) params = { id };
516+
if (height === undefined) params = { id };
517517
else params = { id, height };
518518

519519
const requestId = Util.getCurrentTime();

lib/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,6 @@
1717
import IconService from "./IconService";
1818
import Builder from "./builder";
1919

20+
// eslint-disable-next-line no-restricted-exports
2021
export { IconService as default, Builder };
2122
export * from "./data";

lib/transport/http/client/HttpClient.ts

+1
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ export default class HttpClient {
2929
sendAsync<T>(): Promise<T> {
3030
const { url, body } = httpRequest;
3131

32+
// eslint-disable-next-line no-async-promise-executor
3233
return new Promise<T>(async (resolve, reject) => {
3334
try {
3435
const response = await fetch(url, {

0 commit comments

Comments
 (0)