run prettier and add prettierignore

This commit is contained in:
tjs 2022-08-04 14:13:46 -04:00
parent 21f469fe4d
commit 3abc8e482b
8 changed files with 9 additions and 8 deletions

1
.prettierignore Normal file
View File

@ -0,0 +1 @@
ts/client/src/mango_v4.ts

View File

@ -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",

View File

@ -106,4 +106,4 @@
"perpMarkets": []
}
]
}
}

View File

@ -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));

View File

@ -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)}`);

View File

@ -39,7 +39,7 @@ async function main() {
const user1MangoAccount = await user1Client.getOrCreateMangoAccount(
group,
user1.publicKey
user1.publicKey,
);
console.log(`...mangoAccount1 ${user1MangoAccount.publicKey}`);

View File

@ -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}`);

View File

@ -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}`);