Skip to content

Commit

Permalink
chore (env): setup prettier commands & config
Browse files Browse the repository at this point in the history
  • Loading branch information
vblackwhale committed Dec 16, 2024
1 parent 0f985e8 commit 48b82b9
Show file tree
Hide file tree
Showing 5 changed files with 36 additions and 30 deletions.
6 changes: 3 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ yarn-error.log*
*.tsbuildinfo
next-env.d.ts


# Hardhat
coverage
coverage.json
Expand Down Expand Up @@ -63,7 +62,8 @@ contracts/foundry/out/
# Dotenv file
.env


secrets.json

yarn.lock
yarn.lock

.bw
6 changes: 5 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1 +1,5 @@
/subgraph/subgraph.template.yaml
/subgraph/subgraph.template.yaml
node_modules
artifacts
cache
coverage
24 changes: 0 additions & 24 deletions .prettierrc.cjs

This file was deleted.

24 changes: 24 additions & 0 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"trailingComma": "all",
"semi": true,
"tabWidth": 2,
"endOfLine": "lf",
"quoteProps": "consistent",
"bracketSpacing": true,
"singleQuote": false,
"overrides": [
{
"files": "*.ts",
"options": {
"printWidth": 80
}
},
{
"files": "*.sol",
"options": {
"printWidth": 70,
"semi": true
}
}
]
}
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,9 @@
"graph:prepare-base-sepolia": "cd subgraph && mustache ./config/base-sepolia.json ./subgraph.template.yaml > ./subgraph.yaml",
"graph:deploy-base-sepolia": "cd subgraph && graph deploy --node https://api.studio.thegraph.com/deploy/ ldystaking-subgraph ./subgraph.yaml",
"graph:prepare-arbi-sepolia": "cd subgraph && mustache ./config/arbitrum-sepolia.json ./subgraph.template.yaml > ./subgraph.yaml",
"graph:deploy-arbi-sepolia": "cd subgraph && graph deploy ledgity-arbi-sepolia --version-label v0.0.1 ./subgraph.yaml --node https://subgraphs.alchemy.com/api/subgraphs/deploy --deploy-key 4SaXil3Dh3K9O --ipfs https://ipfs.satsuma.xyz"
"graph:deploy-arbi-sepolia": "cd subgraph && graph deploy ledgity-arbi-sepolia --version-label v0.0.1 ./subgraph.yaml --node https://subgraphs.alchemy.com/api/subgraphs/deploy --deploy-key 4SaXil3Dh3K9O --ipfs https://ipfs.satsuma.xyz",
"prettier:check": "prettier --check --config ./.prettierrc.json --plugin=prettier-plugin-solidity .",
"prettier:write": "prettier --write --config ./.prettierrc.json --plugin=prettier-plugin-solidity ."
},
"dependencies": {
"@auth/prisma-adapter": "^1.0.11",
Expand Down Expand Up @@ -145,4 +147,4 @@
"path": "./node_modules/cz-conventional-changelog"
}
}
}
}

0 comments on commit 48b82b9

Please sign in to comment.