Skip to content

Commit

Permalink
switch formatting and linting to biome.js (#33)
Browse files Browse the repository at this point in the history
* configure and run biome formatter

* remove prettier and eslint

* run lint

* run linter
  • Loading branch information
alecananian authored May 24, 2024
1 parent 81d7ec2 commit bc1807e
Show file tree
Hide file tree
Showing 29 changed files with 414 additions and 1,989 deletions.
4 changes: 1 addition & 3 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,10 @@ cdk/
cdk.out/
deploy/
.dockerignore
.eslintrc
.gitignore
.lintstagedrc
.npmrc
.prettierignore
.prettierrc
biome.json

**/dist/
**/node_modules/
Expand Down
41 changes: 0 additions & 41 deletions .eslintrc

This file was deleted.

2 changes: 1 addition & 1 deletion .lintstagedrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"*": "npm run format"
"*": "npm run fix"
}
10 changes: 0 additions & 10 deletions .prettierignore

This file was deleted.

11 changes: 0 additions & 11 deletions .prettierrc

This file was deleted.

10 changes: 3 additions & 7 deletions apps/api/.aws/task-definition-development.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
"linuxParameters": {
"capabilities": {
"add": [],
"drop": [
"NET_RAW"
]
"drop": ["NET_RAW"]
},
"initProcessEnabled": true
},
Expand Down Expand Up @@ -55,10 +53,8 @@
"cpuArchitecture": "X86_64",
"operatingSystemFamily": "LINUX"
},
"requiresCompatibilities": [
"FARGATE"
],
"requiresCompatibilities": ["FARGATE"],
"cpu": "1024",
"memory": "4096",
"tags": []
}
}
10 changes: 3 additions & 7 deletions apps/api/.aws/task-definition-production.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
"linuxParameters": {
"capabilities": {
"add": [],
"drop": [
"NET_RAW"
]
"drop": ["NET_RAW"]
},
"initProcessEnabled": true
},
Expand Down Expand Up @@ -55,10 +53,8 @@
"cpuArchitecture": "X86_64",
"operatingSystemFamily": "LINUX"
},
"requiresCompatibilities": [
"FARGATE"
],
"requiresCompatibilities": ["FARGATE"],
"cpu": "2048",
"memory": "4096",
"tags": []
}
}
12 changes: 6 additions & 6 deletions apps/api/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { Engine } from "@thirdweb-dev/engine";
import type { SupportedChainId } from "@treasure-dev/tdk-core";
import { SUPPORTED_CHAINS } from "@treasure-dev/tdk-core";
import type { Transport } from "@wagmi/core";
import { createConfig, fallback, http } from "@wagmi/core";
import { http, createConfig, fallback } from "@wagmi/core";
import Fastify from "fastify";
import { createThirdwebClient } from "thirdweb";
import { createAuth } from "thirdweb/auth";
Expand Down Expand Up @@ -58,15 +58,15 @@ const main = async () => {
? createConfig({
chains: SUPPORTED_CHAINS,
transports: SUPPORTED_CHAINS.reduce(
(acc, chain) => ({
...acc,
[chain.id]: fallback([
(acc, chain) => {
acc[chain.id] = fallback([
http(
`https://${chain.id}.rpc.thirdweb.com/${env.THIRDWEB_CLIENT_ID}`,
),
http(),
]),
}),
]);
return acc;
},
{} as Record<SupportedChainId, Transport>,
),
})
Expand Down
Loading

0 comments on commit bc1807e

Please sign in to comment.