Skip to content

Commit b22cfeb

Browse files
committed
build: switch to oxfmt and oxlint
1 parent 98e14ec commit b22cfeb

8 files changed

Lines changed: 66 additions & 224 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- run: bun run lint
2525
- run: bun run test
2626
- run: bun run test:e2e
27-
- run: bunx prettier --check .
27+
- run: bun run format:check
2828
- run: bun run build
2929
- name: Import packed dist with Node
3030
run: |

‎.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+
}

‎.prettierrc.json‎

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

‎IMPLEMENTATION.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ bun add @corbits/embedding
3434
| `@intx/types` (peer, `^0.4.0`) | `RetryPolicy`, `InferenceError` |
3535
| `arktype` | `EmbedConfigSchema` and the embeddings reply shape |
3636

37-
Dev: `@intx/inference`, `@intx/types` and `@intx/inference-testing` pinned at 0.4.0, `@types/bun`, `eslint` with `@eslint/js`, `typescript-eslint` and `jiti`, `prettier`, `typescript` 5.9.
37+
Dev: `@intx/inference`, `@intx/types` and `@intx/inference-testing` pinned at 0.4.0, `@types/bun`, `oxlint`, `oxfmt`, `typescript` 5.9.
3838

3939
## HTTP
4040

‎bun.lock‎

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

‎eslint.config.ts‎

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

‎package.json‎

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@
1717
"build": "tsc -p tsconfig.build.json",
1818
"prepack": "bun run build",
1919
"typecheck": "tsc --noEmit",
20-
"lint": "eslint .",
20+
"lint": "oxlint",
2121
"test": "bun test ./src",
2222
"test:e2e": "bun test ./e2e",
23-
"format": "prettier -w ."
23+
"format": "oxfmt",
24+
"format:check": "oxfmt --check"
2425
},
2526
"dependencies": {
2627
"arktype": "^2.2.3"
@@ -30,16 +31,13 @@
3031
"@intx/types": "^0.4.0"
3132
},
3233
"devDependencies": {
33-
"@eslint/js": "10.0.1",
3434
"@intx/inference": "0.4.0",
3535
"@intx/inference-testing": "0.4.0",
3636
"@intx/types": "0.4.0",
3737
"@types/bun": "1.3.9",
38-
"eslint": "10.10.0",
39-
"jiti": "2.7.0",
40-
"prettier": "3.6.2",
41-
"typescript": "5.9.3",
42-
"typescript-eslint": "8.69.0"
38+
"oxfmt": "0.70.0",
39+
"oxlint": "1.85.0",
40+
"typescript": "5.9.3"
4341
},
4442
"files": [
4543
"dist",

0 commit comments

Comments
 (0)