git » sdk » commit 0f2c33e

Use oxfmt instead of prettier

author Eric Roberts
2026-09-09 21:12:30 UTC
committer Stephen Paul Weber
2026-09-14 13:37:12 UTC
parent 1f3cfd3ede64f850fc4933a4fac142f5f615e9f1

Use oxfmt instead of prettier

We do this in cheogram, may as well be consistent. Prettier was still
fast as it didn't have much to do, but oxfmt will still be faster in
the long run.

.oxfmtrc.json +7 -0
.prettierrc +0 -1
Makefile +2 -2
npm/package.json +44 -44

diff --git a/.oxfmtrc.json b/.oxfmtrc.json
new file mode 100644
index 0000000..e43b157
--- /dev/null
+++ b/.oxfmtrc.json
@@ -0,0 +1,7 @@
+{
+	"$schema": "./node_modules/oxfmt/configuration_schema.json",
+	"useTabs": true,
+	"printWidth": 80,
+	"sortPackageJson": false,
+	"ignorePatterns": []
+}
diff --git a/.prettierrc b/.prettierrc
deleted file mode 100644
index 906cc67..0000000
--- a/.prettierrc
+++ /dev/null
@@ -1 +0,0 @@
-useTabs: true
diff --git a/Makefile b/Makefile
index 618d22b..316505e 100644
--- a/Makefile
+++ b/Makefile
@@ -162,7 +162,7 @@ clean:
 	$(RM) -r cpp/src cpp/include cpp/obj cpp/*.h cpp/*.dso.hash cpp/Build.xml cpp/Options.txt cpp/Borogove.swift libborogove.so
 
 format:
-	npx --no-install prettier --w '**/*.{ts,js}' --ignore-path .gitignore
+	npx --no-install oxfmt '**/*.{ts,js}' --ignore-path .gitignore
 
 format-check:
-	npx --no-install prettier --c '**/*.{ts,js}' --ignore-path .gitignore
+	npx --no-install oxfmt --check '**/*.{ts,js}' --ignore-path .gitignore
diff --git a/npm/package.json b/npm/package.json
index acbb4d2..de9ff02 100644
--- a/npm/package.json
+++ b/npm/package.json
@@ -1,46 +1,46 @@
 {
-  "name": "borogove",
-  "version": "0.0.1",
-  "homepage": "https://borogove.dev",
-  "description": "An SDK that makes it easy to build your own custom chat experience",
-  "keywords": [
-    "chat",
-    "xmpp"
-  ],
-  "main": "index.js",
-  "type": "module",
-  "files": [
-    "*.js",
-    "*.mjs",
-    "*.ts"
-  ],
-  "browser": {
-    "./borogove.js": "./borogove-browser.js",
-    "./persistence.js": "./persistence-browser.js"
-  },
-  "exports": {
-    ".": "./index.js",
-    "./sqlite-wasm": "./sqlite-wasm.js"
-  },
-  "scripts": {
-    "test": "echo \"Error: no test specified\" && exit 1"
-  },
-  "author": "",
-  "license": "Apache-2.0",
-  "dependencies": {
-    "@xmpp/client": "^0.14.0",
-    "@xmpp/debug": "^0.14.0",
-    "@xmpp/sasl-scram-sha-1": "^0.14.0"
-  },
-  "peerDependenciesMeta": {
-    "@sqlite.org/sqlite-wasm": {
-      "optional": true
-    }
-  },
-  "devDependencies": {
-    "@playwright/test": "1.60.0",
-    "@sqlite.org/sqlite-wasm": "^3.53.0-build1",
-    "prettier": "3.3.3",
-    "typescript": "^5.4.5"
-  }
+	"name": "borogove",
+	"version": "0.0.1",
+	"homepage": "https://borogove.dev",
+	"description": "An SDK that makes it easy to build your own custom chat experience",
+	"keywords": [
+		"chat",
+		"xmpp"
+	],
+	"main": "index.js",
+	"type": "module",
+	"files": [
+		"*.js",
+		"*.mjs",
+		"*.ts"
+	],
+	"browser": {
+		"./borogove.js": "./borogove-browser.js",
+		"./persistence.js": "./persistence-browser.js"
+	},
+	"exports": {
+		".": "./index.js",
+		"./sqlite-wasm": "./sqlite-wasm.js"
+	},
+	"scripts": {
+		"test": "echo \"Error: no test specified\" && exit 1"
+	},
+	"author": "",
+	"license": "Apache-2.0",
+	"dependencies": {
+		"@xmpp/client": "^0.14.0",
+		"@xmpp/debug": "^0.14.0",
+		"@xmpp/sasl-scram-sha-1": "^0.14.0",
+		"oxfmt": "^0.67.0"
+	},
+	"peerDependenciesMeta": {
+		"@sqlite.org/sqlite-wasm": {
+			"optional": true
+		}
+	},
+	"devDependencies": {
+		"@playwright/test": "1.60.0",
+		"@sqlite.org/sqlite-wasm": "^3.53.0-build1",
+		"typescript": "^5.4.5"
+	}
 }