Skip to content

Commit 6376d71

Browse files
committed
chore: use oxfmt
1 parent 497f358 commit 6376d71

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

.github/workflows/lint.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
with:
2020
useLockFile: false
2121
- name: "Run prettier"
22-
run: "CI=true yarn run prettier src -c"
22+
run: "CI=true yarn run oxfmt --check"
2323
- name: "Run lint"
2424
run: "CI=true yarn lint"
2525
- name: "Run publint"

.oxfmtrc.jsonc

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+
"ignorePatterns": ["src/authzedapi"],
4+
}

.prettierignore

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

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"buf": "buf generate && tsc-esm-fix --src src/authzedapi --ext='.js'",
4444
"lint": "./node_modules/.bin/eslint src",
4545
"lint:package": "publint --pack npm",
46-
"format": "prettier -w src",
46+
"format": "oxfmt",
4747
"build": "tsc",
4848
"postbuild": "rollup dist/src/index.js --file dist/src/index.cjs --format cjs && cp dist/src/index.d.ts dist/src/index.d.cts",
4949
"prepublish": "yarn build",
@@ -64,7 +64,7 @@
6464
"@typescript-eslint/parser": "^8.54.0",
6565
"eslint": "^9.39.2",
6666
"grpc-tools": "^1.13.1",
67-
"prettier": "^3.8.1",
67+
"oxfmt": "^0.28.0",
6868
"publint": "^0.3.17",
6969
"rollup": "^4.57.1",
7070
"tsc-esm-fix": "^3.1.2",

0 commit comments

Comments
 (0)