Skip to content

Commit c4e5eda

Browse files
build: switch to oxfmt and oxlint (#10)
* build: switch to oxfmt and oxlint * style: format with oxfmt
1 parent 7edfbdd commit c4e5eda

19 files changed

Lines changed: 735 additions & 304 deletions

‎.github/workflows/ci.yml‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ jobs:
1818
node-version: ${{ matrix.node-version }}
1919
- uses: oven-sh/setup-bun@v2
2020
- run: bun install --frozen-lockfile
21+
- run: bun run lint
22+
- run: bun run format:check
2123
- run: bun run typecheck
2224
- run: bun run typecheck:e2e
2325
- run: bun run test

‎.oxfmtrc.json‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3+
"printWidth": 80
4+
}

‎.oxlintrc.json‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"categories": {
4+
"correctness": "error"
5+
}
6+
}

‎AGENTS.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Instructions for AI agents working in this repository.
1010

1111
- **Runtime:** Bun + TypeScript, ES modules only.
1212
- Touch only code related to the task.
13-
- Comment *why*, never *what*.
13+
- Comment _why_, never _what_.
1414
- No emojis in code or docs.
1515

1616
## Build & Validation

‎CLAUDE.md‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
Default to using Bun instead of Node.js.
32

43
- Use `bun <file>` instead of `node <file>` or `ts-node <file>`

‎bun.lock‎

Lines changed: 84 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)