Skip to content

Commit f8871a5

Browse files
committed
chore: use oxfmt to replace prettier where possible
1 parent d191aea commit f8871a5

File tree

8 files changed

+219
-121
lines changed

8 files changed

+219
-121
lines changed

.oxfmtrc.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3+
"semi": false,
4+
"singleQuote": true,
5+
"trailingComma": "none",
6+
"embeddedLanguageFormatting": "auto"
7+
}

eslint.config.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
import { fileURLToPath, URL } from 'node:url'
2-
31
import js from '@eslint/js'
42
import skipFormatting from '@vue/eslint-config-prettier/skip-formatting'
53
import {
@@ -10,6 +8,7 @@ import {
108
import gitignore from 'eslint-config-flat-gitignore'
119
import perfectionist from 'eslint-plugin-perfectionist'
1210
import pluginVue from 'eslint-plugin-vue'
11+
import { fileURLToPath, URL } from 'node:url'
1312

1413
// Allow both TS and JS inside <script> of .vue files
1514
configureVueProject({ scriptLangs: ['ts', 'js'] })

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"eslint-plugin-vue": "^10.5.1",
1515
"lefthook": "^1.7.17",
1616
"prettier": "^3.6.2",
17+
"oxfmt": "^0.20.0",
1718
"typescript": "^5.9.3"
1819
},
1920
"scripts": {
@@ -25,11 +26,11 @@
2526
"lint": "pnpm -r lint",
2627
"lint:fix": "pnpm -r lint:fix",
2728
"format": "pnpm -r format",
29+
"format:check": "pnpm -r format:check",
2830
"typecheck": "pnpm -r typecheck",
2931
"zip": "pnpm --filter @tempad-dev/extension zip",
3032
"npm:plugins": "pnpm --filter @tempad-dev/plugins publish --access public",
3133
"npm:mcp": "pnpm --filter @tempad-dev/mcp publish --access public",
32-
"format:check": "pnpm exec prettier --check \"**/*.{js,ts,mjs,cjs,cts,mts,json,md,yml,yaml}\"",
3334
"prepare": "lefthook install"
3435
},
3536
"pnpm": {
@@ -39,7 +40,7 @@
3940
"spawn-sync"
4041
],
4142
"overrides": {
42-
"vite": "8.0.0-beta.2"
43+
"vite": "8.0.0-beta.5"
4344
}
4445
}
4546
}

packages/extension/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
22
"name": "@tempad-dev/extension",
3-
"description": "TemPad Dev browser extension.",
4-
"private": true,
53
"version": "0.14.3",
4+
"private": true,
5+
"description": "TemPad Dev browser extension.",
66
"type": "module",
77
"scripts": {
88
"dev": "wxt",
@@ -14,7 +14,8 @@
1414
"postinstall": "wxt prepare",
1515
"lint": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts",
1616
"lint:fix": "eslint . --ext .vue,.js,.jsx,.cjs,.mjs,.ts,.tsx,.cts,.mts --fix",
17-
"format": "prettier --write \"**/*.{js,ts,jsx,tsx,cjs,mjs,cts,mts,vue,json,md,css}\" --ignore-path ../.gitignore"
17+
"format": "oxfmt \"!**/*.css\" && prettier --write \"**/*.css\"",
18+
"format:check": "oxfmt --check \"!**/*.css\" && prettier --check \"**/*.css\""
1819
},
1920
"dependencies": {
2021
"@tempad-dev/mcp-shared": "workspace:^0.1.0",
@@ -26,25 +27,24 @@
2627
"vue": "^3.5.24"
2728
},
2829
"devDependencies": {
30+
"@eslint/js": "^9.39.1",
2931
"@figma/plugin-typings": "^1.121.0",
3032
"@rushstack/eslint-patch": "^1.15.0",
3133
"@types/node": "^24.10.1",
3234
"@types/prismjs": "^1.26.5",
3335
"@types/stringify-object": "^4.0.5",
34-
"@eslint/js": "^9.39.1",
3536
"@vue/eslint-config-prettier": "^10.2.0",
3637
"@vue/eslint-config-typescript": "^14.6.0",
3738
"@wxt-dev/module-vue": "^1.0.3",
38-
"eslint-config-flat-gitignore": "^2.1.0",
3939
"comment-mark": "^2.0.1",
4040
"esbuild": "^0.27.0",
4141
"eslint": "^9.39.1",
42+
"eslint-config-flat-gitignore": "^2.1.0",
4243
"eslint-plugin-perfectionist": "^4.15.1",
4344
"eslint-plugin-vue": "^10.5.1",
4445
"p-limit": "^7.2.0",
4546
"pino": "^9.14.0",
4647
"playwright-chromium": "^1.56.1",
47-
"prettier": "^3.6.2",
4848
"proper-lockfile": "^4.1.2",
4949
"tsx": "^4.20.6",
5050
"typescript": "^5.9.3",

packages/mcp-server/package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
11
{
22
"name": "@tempad-dev/mcp",
3-
"description": "MCP server for TemPad Dev.",
43
"version": "0.3.9",
5-
"type": "module",
6-
"main": "dist/cli.mjs",
4+
"description": "MCP server for TemPad Dev.",
75
"bin": "dist/cli.mjs",
86
"files": [
9-
"dist/**/*",
10-
"README.md"
7+
"README.md",
8+
"dist/**/*"
119
],
10+
"type": "module",
11+
"main": "dist/cli.mjs",
1212
"scripts": {
1313
"build": "tsdown",
1414
"typecheck": "tsc -p tsconfig.json --noEmit",
1515
"lint": "eslint . --ext .ts,.mts,.cts,.js,.mjs,.cjs",
1616
"lint:fix": "eslint . --ext .ts,.mts,.cts,.js,.mjs,.cjs --fix",
17-
"format": "prettier --write \"**/*.{js,ts,jsx,tsx,cjs,mjs,cts,mts,vue,json,md,css}\" --ignore-path ../.gitignore",
17+
"format": "oxfmt",
18+
"format:check": "oxfmt --check",
1819
"prepublishOnly": "pnpm run build"
1920
},
2021
"dependencies": {

packages/mcp-shared/package.json

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
11
{
22
"name": "@tempad-dev/mcp-shared",
3-
"description": "Shared MCP schemas/constants used by TemPad Dev extension and MCP server.",
43
"version": "0.1.0",
4+
"description": "Shared MCP schemas/constants used by TemPad Dev extension and MCP server.",
5+
"files": [
6+
"dist"
7+
],
58
"type": "module",
69
"main": "dist/index.js",
710
"types": "dist/index.d.ts",
811
"exports": {
912
".": {
10-
"import": "./dist/index.js",
11-
"types": "./dist/index.d.ts"
13+
"types": "./dist/index.d.ts",
14+
"import": "./dist/index.js"
1215
}
1316
},
14-
"files": [
15-
"dist"
16-
],
1717
"scripts": {
1818
"build": "tsdown",
1919
"prepare": "pnpm run build",
2020
"typecheck": "tsc -p tsconfig.json --noEmit",
2121
"lint": "eslint . --ext .ts,.mts,.cts,.js,.mjs,.cjs",
2222
"lint:fix": "eslint . --ext .ts,.mts,.cts,.js,.mjs,.cjs --fix",
23-
"format": "prettier --write \"**/*.{js,ts,jsx,tsx,cjs,mjs,cts,mts,vue,json,md,css}\" --ignore-path ../.gitignore"
23+
"format": "oxfmt",
24+
"format:check": "oxfmt --check"
2425
},
2526
"dependencies": {
2627
"zod": "^4.1.12"

packages/plugins/package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,28 @@
11
{
22
"name": "@tempad-dev/plugins",
3-
"description": "Plugin utils for TemPad Dev.",
43
"version": "0.6.1",
4+
"description": "Plugin utils for TemPad Dev.",
5+
"files": [
6+
"dist",
7+
"README.md"
8+
],
59
"type": "module",
610
"main": "dist/index.js",
711
"types": "dist/index.d.ts",
812
"exports": {
913
".": {
10-
"import": "./dist/index.js",
11-
"types": "./dist/index.d.ts"
14+
"types": "./dist/index.d.ts",
15+
"import": "./dist/index.js"
1216
}
1317
},
14-
"files": [
15-
"dist",
16-
"README.md"
17-
],
1818
"scripts": {
1919
"build": "tsdown",
2020
"prepare": "pnpm run build",
2121
"typecheck": "tsc -p tsconfig.json --noEmit",
2222
"lint": "eslint . --ext .ts,.mts,.cts,.js,.mjs,.cjs",
2323
"lint:fix": "eslint . --ext .ts,.mts,.cts,.js,.mjs,.cjs --fix",
24-
"format": "prettier --write \"**/*.{js,ts,jsx,tsx,cjs,mjs,cts,mts,vue,json,md,css}\" --ignore-path ../.gitignore",
24+
"format": "oxfmt",
25+
"format:check": "oxfmt --check",
2526
"prepublishOnly": "pnpm run build"
2627
},
2728
"devDependencies": {

0 commit comments

Comments
 (0)