Skip to content

Commit ba593ce

Browse files
authored
internal: migrate from prettier to oxfmt (#1049)
1 parent cc6c58e commit ba593ce

21 files changed

Lines changed: 618 additions & 108 deletions

.github/workflows/js.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,4 +69,4 @@ jobs:
6969
- name: Install dependencies
7070
run: ./s/ci-install
7171
- name: Check Formatting
72-
run: ./s/prettier
72+
run: ./s/oxfmt

.oxfmtrc.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3+
"semi": false,
4+
"printWidth": 80,
5+
"sortPackageJson": false,
6+
"ignorePatterns": [
7+
"build/",
8+
"node_modules/",
9+
"playground/",
10+
"coverage/",
11+
".venv/",
12+
".mypy_cache/",
13+
".terraform/",
14+
".pytest_cache/",
15+
"target/",
16+
"docs",
17+
"squawk-vscode/syntaxes/pgsql.tmLanguage.json",
18+
"squawk-vscode/.vscode-test/",
19+
"squawk-vscode/dist/"
20+
]
21+
}

.prettierignore

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

.prettierrc.js

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

.vscode/extensions.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"usernamehw.errorlens",
66
"dbaeumer.vscode-eslint",
77
"mitsuhiko.insta",
8-
"esbenp.prettier-vscode",
8+
"oxc.oxc-vscode",
99
"vitest.explorer",
1010
"binhtran432k.ungrammar-language-features",
1111
"sleistner.vscode-fileutils",

.vscode/settings.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"editor.formatOnSave": true,
3-
"editor.defaultFormatter": "esbenp.prettier-vscode",
3+
"editor.defaultFormatter": "oxc.oxc-vscode",
44
"rust-analyzer.check.command": "build",
55
"rust-analyzer.showSyntaxTree": true,
66
"[rust]": {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
"@typescript-eslint/parser": "^3.3.0",
2626
"eslint": "^7.2.0",
2727
"eslint-plugin-import": "^2.21.2",
28-
"prettier": "^3.8.0",
28+
"oxfmt": "^0.44.0",
2929
"typescript": "^3.9.5"
3030
},
3131
"dependencies": {
3232
"node-fetch": "2.6.7"
3333
},
3434
"volta": {
35-
"node": "20.18.0"
35+
"node": "20.19.0"
3636
}
3737
}

playground/.oxfmtrc.json

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

playground/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"@tailwindcss/vite": "^4.1.12",
1818
"lz-string": "^1.5.0",
1919
"monaco-editor": "^0.52.2",
20-
"prettier": "^3.6.2",
20+
"oxfmt": "^0.44.0",
2121
"react": "^19.2.0",
2222
"react-dom": "^19.2.0",
2323
"tailwindcss": "^4.1.12"
@@ -37,7 +37,7 @@
3737
"vite": "^6.4.1"
3838
},
3939
"volta": {
40-
"node": "18.20.8",
40+
"node": "20.19.0",
4141
"pnpm": "9.15.4"
4242
}
4343
}

playground/pnpm-lock.yaml

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

0 commit comments

Comments
 (0)