run prettier and add prettierignore
This commit is contained in:
parent
1b1dbc0406
commit
46e9a1a82c
|
@ -0,0 +1 @@
|
|||
ts/client/src/mango_v4.ts
|
|
@ -23,13 +23,13 @@
|
|||
"example1-user": "ts-node ts/client/src/scripts/example1-user.ts",
|
||||
"example1-admin": "ts-node ts/client/src/scripts/example1-admin.ts",
|
||||
"scratch": "ts-node ts/client/src/scripts/scratch/scratch.ts",
|
||||
"format": "prettier --check .",
|
||||
"format": "prettier --check ./ts",
|
||||
"lint": "eslint ./ts --ext ts --ext tsx --ext js --quiet",
|
||||
"typecheck": "tsc --noEmit --pretty",
|
||||
"prepare": "yarn build",
|
||||
"prebuild": "npm run clean",
|
||||
"prepublishOnly": "npm run validate && npm run build",
|
||||
"validate": "npm run typecheck && npm run lint && npm run format-check"
|
||||
"validate": "npm run typecheck && npm run lint && npm run format"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@jup-ag/core": "^1.0.0-beta.28",
|
||||
|
|
|
@ -106,4 +106,4 @@
|
|||
"perpMarkets": []
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -44,7 +44,7 @@ async function main() {
|
|||
console.log(`Creating mangoaccount...`);
|
||||
const mangoAccount = await client.getOrCreateMangoAccount(
|
||||
group,
|
||||
user.publicKey
|
||||
user.publicKey,
|
||||
);
|
||||
console.log(`...created/found mangoAccount ${mangoAccount.publicKey}`);
|
||||
console.log(mangoAccount.toString(group));
|
||||
|
|
|
@ -59,7 +59,7 @@ async function main() {
|
|||
console.log(`Creating mangoaccount...`);
|
||||
const mangoAccount = await client.getOrCreateMangoAccount(
|
||||
group,
|
||||
user.publicKey
|
||||
user.publicKey,
|
||||
);
|
||||
console.log(`...created/found mangoAccount ${mangoAccount.publicKey}`);
|
||||
console.log(`start balance \n${mangoAccount.toString(group)}`);
|
||||
|
|
|
@ -39,7 +39,7 @@ async function main() {
|
|||
|
||||
const user1MangoAccount = await user1Client.getOrCreateMangoAccount(
|
||||
group,
|
||||
user1.publicKey
|
||||
user1.publicKey,
|
||||
);
|
||||
|
||||
console.log(`...mangoAccount1 ${user1MangoAccount.publicKey}`);
|
||||
|
|
|
@ -44,7 +44,7 @@ async function main() {
|
|||
console.log(`Creating mangoaccount...`);
|
||||
const mangoAccount = await client.getOrCreateMangoAccount(
|
||||
group,
|
||||
user.publicKey
|
||||
user.publicKey,
|
||||
);
|
||||
console.log(`...created/found mangoAccount ${mangoAccount.publicKey}`);
|
||||
|
||||
|
|
|
@ -45,7 +45,7 @@ async function main() {
|
|||
console.log(`Creating mangoaccount...`);
|
||||
const mangoAccount = await client.getOrCreateMangoAccount(
|
||||
group,
|
||||
user.publicKey
|
||||
user.publicKey,
|
||||
);
|
||||
console.log(`...created/found mangoAccount ${mangoAccount.publicKey}`);
|
||||
|
||||
|
|
Loading…
Reference in New Issue