Skip to content

Commit 600443b

Browse files
maxholmanclaude
andcommitted
chore: replace biome with oxlint/oxfmt
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 29de6c2 commit 600443b

4 files changed

Lines changed: 56 additions & 6 deletions

File tree

.oxfmtrc.json

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
{
2+
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3+
"useTabs": true,
4+
"printWidth": 80,
5+
"ignorePatterns": [
6+
"**/dist",
7+
"**/build",
8+
"**/node_modules",
9+
"**/.claude"
10+
],
11+
"sortPackageJson": {
12+
"sortScripts": true
13+
},
14+
"sortImports": {
15+
"newlinesBetween": false
16+
},
17+
"overrides": [
18+
{
19+
"files": ["*.jsonc"],
20+
"options": {
21+
"trailingComma": "none"
22+
}
23+
}
24+
]
25+
}

.oxlintrc.json

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"$schema": "./node_modules/oxlint/configuration_schema.json",
3+
"plugins": ["typescript", "unicorn", "promise", "import", "oxc"],
4+
"options": {},
5+
"categories": {
6+
"correctness": "error",
7+
"suspicious": "warn",
8+
"perf": "warn"
9+
},
10+
"rules": {
11+
"typescript/no-non-null-assertion": "error",
12+
"no-nested-ternary": "error",
13+
"unicorn/no-nested-ternary": "error",
14+
"import/no-named-as-default": "error",
15+
"max-lines-per-function": "off",
16+
"func-style": ["error", "declaration", { "allowArrowFunctions": true }],
17+
"curly": ["error", "all"],
18+
"import/extensions": [
19+
"error",
20+
{
21+
"css": "always"
22+
}
23+
]
24+
},
25+
"ignorePatterns": ["**/node_modules", "__tests__/fixtures/**"]
26+
}

Makefile

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,14 @@ petstore: __tests__/fixtures/petstore.json
3131
node --enable-source-maps bin/index.ts \
3232
-i $< \
3333
-o __tests__/fixtures/petstore
34-
pnpm exec biome check --unsafe --write __tests__/fixtures/petstore
34+
pnpm exec oxfmt --write __tests__/fixtures/petstore
3535

3636
.PHONY: test1
3737
test1: __tests__/fixtures/test1.json
3838
node --enable-source-maps bin/index.ts \
3939
-i $< \
4040
-o __tests__/fixtures/test1
41-
pnpm exec biome check --unsafe --write __tests__/fixtures/test1
41+
pnpm exec oxfmt --write __tests__/fixtures/test1
4242

4343

4444
__tests__/fixtures/openai.json: __tests__/fixtures/openai.yaml
@@ -53,16 +53,16 @@ openai: __tests__/fixtures/openai.json
5353
node --enable-source-maps bin/index.ts \
5454
-i $< \
5555
-o __tests__/fixtures/openai
56-
pnpm exec biome check --unsafe --write __tests__/fixtures/openai
56+
pnpm exec oxfmt --write __tests__/fixtures/openai
5757

5858
.PHONY: docker
5959
docker: __tests__/fixtures/docker.json
6060
node --enable-source-maps bin/index.ts \
6161
-i $< \
6262
-o __tests__/fixtures/docker
63-
pnpm exec biome check --unsafe --write __tests__/fixtures/docker
63+
pnpm exec oxfmt --write __tests__/fixtures/docker
6464

6565
.PHONY: pretty
6666
pretty: node_modules
6767
pnpm exec eslint --fix . || true
68-
pnpm exec biome check --unsafe --write .
68+
pnpm exec oxfmt --write .

biome.jsonc

Lines changed: 0 additions & 1 deletion
This file was deleted.

0 commit comments

Comments
 (0)