lint fixes

This commit is contained in:
Adrian Brzeziński 2022-10-11 19:16:24 +02:00
parent ea7e54b55d
commit 9da8716645
4 changed files with 16 additions and 5 deletions

View File

@ -1 +1 @@
# Mango solana helpers
# mangolana

View File

@ -1,11 +1,11 @@
{
"name": "mangolana",
"version": "1.0.0",
"version": "0.0.1-beta.1",
"description": "",
"main": "lib/index.js",
"types": "lib/index.d.ts",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"test": "",
"build": "tsc",
"format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\"",
"lint": "tslint -p tsconfig.json",

View File

@ -87,7 +87,7 @@ export const awaitTransactionSignatureConfirmation = async ({
done = true;
console.log('WS error in setup', txid, e);
}
let retrySleep = timeoutStrategy.getSignatureStatusesPoolIntervalMs!;
const retrySleep = timeoutStrategy.getSignatureStatusesPoolIntervalMs!;
while (!done) {
// eslint-disable-next-line no-loop-func
await sleep(retrySleep);

View File

@ -1,3 +1,14 @@
{
"extends": ["tslint:recommended", "tslint-config-prettier"]
"extends": ["tslint:recommended", "tslint-config-prettier"],
"rules": {
"no-console": false,
"comment-format": false,
"prefer-for-of": false,
"no-shadowed-variable": false,
"array-type": false,
"max-classes-per-file": false,
"object-literal-shorthand": false,
"one-variable-per-declaration": false,
"class-name": false
}
}