Skip to content

Commit ca8c7b3

Browse files
authored
Merge pull request #42 from Lumerin-protocol/chore/typecheck-lint-ci
chore: biome lint gates and Hardhat 3.9.1 alignment
2 parents 535d98a + 9253595 commit ca8c7b3

25 files changed

Lines changed: 886 additions & 283 deletions

‎.github/workflows/contract-tests.yml‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,5 +57,14 @@ jobs:
5757
- name: Install dependencies
5858
run: pnpm install --frozen-lockfile
5959

60+
- name: Compile contracts
61+
run: pnpm compile
62+
63+
- name: Lint
64+
run: pnpm lint
65+
66+
- name: Typecheck
67+
run: pnpm typecheck
68+
6069
- name: Run tests
6170
run: pnpm test

‎.github/workflows/indexer-tests.yml‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,11 @@ jobs:
7272
- name: Codegen
7373
run: pnpm codegen
7474

75-
- name: Build
76-
run: pnpm build
75+
- name: Lint
76+
run: pnpm lint
77+
78+
- name: Typecheck
79+
run: pnpm typecheck
7780

7881
- name: Run matchstick tests
7982
run: pnpm test

‎.github/workflows/keeper-test.yml‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,10 @@ jobs:
7474
echo "futures-marketplace-abi layout ok:"
7575
ls -la "$pkg" | head -20
7676
77+
- name: Lint
78+
working-directory: ./keeper
79+
run: pnpm lint
80+
7781
- name: TypeCheck
7882
working-directory: ./keeper
7983
run: pnpm typecheck

‎.github/workflows/market-maker-tests.yml‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,9 @@ jobs:
5757
- name: Install dependencies
5858
run: pnpm install --frozen-lockfile
5959

60+
- name: Lint
61+
run: pnpm lint
62+
6063
- name: Typecheck
6164
run: pnpm typecheck
6265

‎.github/workflows/points-indexer-tests.yml‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,14 @@ jobs:
8585
working-directory: ./points-indexer
8686
run: pnpm codegen
8787

88+
- name: Lint
89+
working-directory: ./points-indexer
90+
run: pnpm lint
91+
92+
- name: Typecheck
93+
working-directory: ./points-indexer
94+
run: pnpm typecheck
95+
8896
- name: Build
8997
working-directory: ./points-indexer
9098
run: pnpm build

‎biome.json‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"!!**/node_modules",
99
"!!**/coverage",
1010
"!!**/cache",
11-
"!!**/artifacts"
11+
"!!**/artifacts",
12+
"!!**/dist"
1213
]
1314
},
1415
"overrides": [
@@ -25,6 +26,7 @@
2526
"noForEach": "off"
2627
},
2728
"correctness": {
29+
"noConstantCondition": "off",
2830
"noUnusedImports": "warn"
2931
},
3032
"style": {

‎contracts/package.json‎

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
"scripts": {
1010
"compile": "hardhat compile",
1111
"test": "hardhat test",
12+
"typecheck": "tsgo --noEmit",
13+
"lint": "biome lint .",
1214
"clean": "rm -rf abi artifacts cache",
1315
"deploy:vault": "hardhat run scripts/deploy-collateral-vault.ts",
1416
"deploy:pme": "hardhat run scripts/deploy-portfolio-margin-engine.ts",
@@ -19,17 +21,19 @@
1921
},
2022
"devDependencies": {
2123
"@biomejs/biome": "^2.4.10",
22-
"@nomicfoundation/hardhat-toolbox-viem": "^5.0.0",
23-
"@nomicfoundation/hardhat-verify": "^3.0.0",
24+
"@nomicfoundation/hardhat-toolbox-viem": "^5.0.7",
25+
"@nomicfoundation/hardhat-verify": "^3.0.17",
26+
"@nomicfoundation/hardhat-viem": "3.0.9",
2427
"@types/node": "^22.0.0",
25-
"hardhat": "^3.2",
28+
"@typescript/native-preview": "7.0.0-dev.20260707.2",
29+
"hardhat": "^3.9.1",
2630
"typescript": "^5.8.0"
2731
},
2832
"dependencies": {
2933
"@openzeppelin/contracts": "npm:@openzeppelin/contracts@5.1.0",
3034
"@openzeppelin/contracts-upgradeable": "npm:@openzeppelin/contracts-upgradeable@5.1.0",
3135
"dotenv": "^16.4.1",
32-
"viem": "^2.42.1"
36+
"viem": "^2.52.2"
3337
},
3438
"packageManager": "pnpm@10.28.1"
3539
}

0 commit comments

Comments
 (0)