build: Initial linting setup (#1560)

* sets up linting config and runs `yarn lint --fix` once, so that all changes will show up correctly in future PRs.

* Note that there are still a lot of linter errors.
This commit is contained in:
Nathan Nichols
2021-08-26 21:22:40 -05:00
committed by Mayukha Vadari
parent 12cfed5c17
commit 8b95ee5fab
286 changed files with 15508 additions and 12691 deletions

View File

@@ -1,39 +1,40 @@
import { BaseRequest, BaseResponse } from './baseMethod'
import { LedgerIndex } from "../common"
import { LedgerIndex } from "../common";
import { BaseRequest, BaseResponse } from "./baseMethod";
interface Trustline {
account: string
balance: string
currency: string
limit: string
limit_peer: string
quality_in: number
quality_out: number
no_ripple?: boolean
no_ripple_peer?: boolean
authorized?: boolean
peer_authorized?: boolean
freeze?: boolean
freeze_peer?: boolean
account: string;
balance: string;
currency: string;
limit: string;
limit_peer: string;
quality_in: number;
quality_out: number;
no_ripple?: boolean;
no_ripple_peer?: boolean;
authorized?: boolean;
peer_authorized?: boolean;
freeze?: boolean;
freeze_peer?: boolean;
}
export interface AccountLinesRequest extends BaseRequest {
command: "account_lines"
account: string
ledger_hash?: string
ledger_index?: LedgerIndex
peer?: string
limit?: number
marker?: any
command: "account_lines";
account: string;
ledger_hash?: string;
ledger_index?: LedgerIndex;
peer?: string;
limit?: number;
marker?: any;
}
export interface AccountLinesResponse extends BaseResponse {
result: {
account: string
lines: Trustline[]
ledger_current_index?: number
ledger_index?: number
ledger_hash?: string
marker?: any
}
account: string;
lines: Trustline[];
ledger_current_index?: number;
ledger_index?: number;
ledger_hash?: string;
marker?: any;
};
}