Skip to content

Commit fbc4cd6

Browse files
hvasconcelosvhcsilvaVitor Hugoclaude
authored
Migrate from ESLint + Prettier to Biome (#15)
Migration to Bun Runtime * Replace dappkit and ethers with viem (#13) * Bun Runtime * ChainCast * ci * ci-cd * Opus is a beast 😱 * [TKAI-4349] create a webhook to send swap events tkai bepro to zapier (#14) * chore: add missing dependency * feat: add json parse instruction * refactor: fix template args * refactor: add lib to convert bigint to string on objects * refactor: undo change * chore: remove web3 * refactor: use viem instead of web3 * feat: improve VM error logging with context and backtrace Add detailed error and halt logging to the Virtual Machine with: - Cast ID, event name, and block number context - Instruction that caused the halt/error - Full backtrace of executed instructions with args - Differentiation between errors and intentional halts 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> --------- Co-authored-by: Vitor Hugo <vhcsilva@gmail.com> Co-authored-by: Helder Vasconcelos <heldervasc@bearstouch.com> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com> * Fix CI: upgrade setup-bun to v2 and codecov-action to v5 - setup-bun v1 has caching bugs causing HTTP 400 errors - codecov-action v5 is the latest stable version 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Upload * Migrate from ESLint + Prettier to Biome - Add biome.json configuration with equivalent formatting rules - Remove ESLint and Prettier configs (.eslintrc.json, .prettierrc.json, etc.) - Remove 14 ESLint/Prettier dependencies, add @biomejs/biome - Update package.json scripts: lint, lint:fix, format, check, check:fix - Fix catch clause type annotations (Error | any → unknown) - Format entire codebase with Biome - Update CLAUDE.md and README.md documentation Benefits: - 10-100x faster linting and formatting - Single tool replaces ESLint + Prettier - Fewer dependencies, smaller node_modules - Auto-organized imports 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com> * Upload * Upload --------- Co-authored-by: Vitor Hugo <9003126+vhcsilva@users.noreply.github.com> Co-authored-by: Vitor Hugo <vhcsilva@gmail.com> Co-authored-by: Claude Opus 4.5 <noreply@anthropic.com>
1 parent b9f7da2 commit fbc4cd6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+4399
-21438
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ GET_PAST_RETRIES=3
1313
CORS_ENABLED=false
1414
CORS_ALLOWED_ORIGINS=localhost
1515
SERVER_KEY="secret"
16-
ENVIRONMENT_TYPE="development"
16+
ENVIRONMENT_TYPE="development"
1717
WEB3_RPC_LOCAL_URL=http://127.0.0.1:8545
1818
WEB3_WS_LOCAL_URL=ws://127.0.0.1:8545
1919
REDIS_HOSTNAME=localhost

.eslintignore

Lines changed: 0 additions & 6 deletions
This file was deleted.

.eslintrc.json

Lines changed: 0 additions & 36 deletions
This file was deleted.
Lines changed: 8 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,38 +11,26 @@ jobs:
1111
runs-on: ubuntu-latest
1212
strategy:
1313
matrix:
14-
node-version: [18.x, 20.x]
15-
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
14+
bun-version: [1.3.5]
15+
# See supported Bun release schedule at https://bun.sh/docs/installation
1616

1717
steps:
1818
- name: Checkout code
1919
uses: actions/checkout@v4
2020

21-
- name: Setup Node.js ${{ matrix.node-version }}
22-
uses: actions/setup-node@v4
21+
- name: Setup Bun ${{ matrix.bun-version }}
22+
uses: oven-sh/setup-bun@v2
2323
with:
24-
node-version: ${{ matrix.node-version }}
25-
cache: 'npm'
24+
bun-version: ${{ matrix.bun-version }}
2625

2726
- name: Install dependencies
28-
run: npm install
27+
run: bun install --frozen-lockfile
2928

3029
- name: Run linting
31-
run: npm run lint
32-
33-
- name: Check code formatting
34-
run: npm run pretty
30+
run: bun run lint
3531

3632
- name: Build project
37-
run: npm run build
38-
39-
- name: Upload coverage reports
40-
uses: codecov/codecov-action@v3
41-
with:
42-
file: ./coverage/lcov.info
43-
flags: unittests
44-
name: codecov-umbrella
45-
fail_ci_if_error: false
33+
run: bun run build
4634

4735
docker:
4836
runs-on: ubuntu-latest

.prettierignore

Lines changed: 0 additions & 5 deletions
This file was deleted.

.prettierrc.json

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)