Skip to content

Commit e8ffb59

Browse files
thedanchezclaude
andcommitted
chore: replace prettier with oxfmt
Same printWidth 100 house style; oxfmt.config.ts (defineConfig) for typed config; scripts keep format=check / format:fix=write semantics. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
1 parent 26ddb86 commit e8ffb59

7 files changed

Lines changed: 79 additions & 43 deletions

File tree

.prettierignore

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

.prettierrc

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

bun.lock

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

eslint.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export default tseslint.config(
2727
parserOptions: {
2828
sourceType: "module",
2929
projectService: {
30-
allowDefaultProject: ["apps/e2e/__tests__/*.ts", "eslint.config.ts"],
30+
allowDefaultProject: ["apps/e2e/__tests__/*.ts", "eslint.config.ts", "oxfmt.config.ts"],
3131
},
3232
ecmaFeatures: {
3333
jsx: true,

oxfmt.config.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { defineConfig } from "oxfmt";
2+
3+
export default defineConfig({
4+
printWidth: 100,
5+
ignorePatterns: ["coverage/", "dist/", "test-results/", "bun.lock"],
6+
});

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
"name": "solid-uplot",
33
"version": "0.0.0",
44
"private": true,
5-
"type": "module",
65
"workspaces": [
76
"apps/*",
87
"packages/*"
98
],
9+
"type": "module",
1010
"scripts": {
1111
"build": "bun run --filter @dschz/solid-uplot build",
1212
"build:watch": "bun run --filter @dschz/solid-uplot build:watch",
1313
"dev": "bun run --filter playground dev",
1414
"dev:e2e": "bun run --filter e2e dev",
15-
"format": "prettier . --check",
16-
"format:fix": "prettier . --write",
15+
"format": "oxfmt --check",
16+
"format:fix": "oxfmt",
1717
"lint": "eslint .",
1818
"lint:fix": "eslint . --fix",
1919
"pkg:changeset": "changeset",
@@ -36,7 +36,7 @@
3636
"eslint-plugin-solid": "0.15.0",
3737
"globals": "17.11.0",
3838
"jiti": "2.7.0",
39-
"prettier": "3.9.6",
39+
"oxfmt": "0.63.0",
4040
"typescript": "5.9.3",
4141
"typescript-eslint": "8.67.0"
4242
}

packages/solid-uplot/package.json

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,6 @@
22
"name": "@dschz/solid-uplot",
33
"version": "0.5.2",
44
"description": "SolidJS wrapper for uPlot — ultra-fast, tiny time-series & charting library",
5-
"type": "module",
6-
"author": "Daniel Sanchez <dsanc89@pm.me>",
7-
"license": "MIT",
85
"keywords": [
96
"analytics",
107
"canvas",
@@ -20,9 +17,9 @@
2017
"lightweight",
2118
"lightweight-charts",
2219
"metrics",
20+
"plotting",
2321
"plugin",
2422
"plugins",
25-
"plotting",
2623
"real-time",
2724
"solid",
2825
"solid-chart",
@@ -40,24 +37,34 @@
4037
"visualization"
4138
],
4239
"homepage": "https://github.com/dsnchz/solid-uplot#readme",
40+
"bugs": {
41+
"url": "https://github.com/dsnchz/solid-uplot/issues"
42+
},
43+
"license": "MIT",
44+
"author": "Daniel Sanchez <dsanc89@pm.me>",
4345
"repository": {
4446
"type": "git",
4547
"url": "https://github.com/dsnchz/solid-uplot.git",
4648
"directory": "packages/solid-uplot"
4749
},
48-
"bugs": {
49-
"url": "https://github.com/dsnchz/solid-uplot/issues"
50-
},
51-
"publishConfig": {
52-
"access": "public"
53-
},
5450
"files": [
5551
"dist"
5652
],
53+
"type": "module",
5754
"main": "./dist/index/index.js",
5855
"module": "./dist/index/index.js",
59-
"types": "./dist/index/index.d.ts",
6056
"browser": {},
57+
"types": "./dist/index/index.d.ts",
58+
"typesVersions": {
59+
"*": {
60+
"plugins": [
61+
"./dist/plugins/index.d.ts"
62+
],
63+
"utils": [
64+
"./dist/utils/index.d.ts"
65+
]
66+
}
67+
},
6168
"exports": {
6269
".": {
6370
"import": {
@@ -78,15 +85,8 @@
7885
}
7986
}
8087
},
81-
"typesVersions": {
82-
"*": {
83-
"plugins": [
84-
"./dist/plugins/index.d.ts"
85-
],
86-
"utils": [
87-
"./dist/utils/index.d.ts"
88-
]
89-
}
88+
"publishConfig": {
89+
"access": "public"
9090
},
9191
"scripts": {
9292
"build": "tsup",
@@ -95,10 +95,6 @@
9595
"test:cov": "vitest run --coverage",
9696
"typecheck": "tsc --noEmit"
9797
},
98-
"peerDependencies": {
99-
"solid-js": ">=1.6.0",
100-
"uplot": ">=1.6.32"
101-
},
10298
"devDependencies": {
10399
"@dschz/tsconfig": "workspace:*",
104100
"@solidjs/testing-library": "^0.8.10",
@@ -118,5 +114,9 @@
118114
"vite": "^7.2.4",
119115
"vite-plugin-solid": "^2.11.10",
120116
"vitest": "^4.0.13"
117+
},
118+
"peerDependencies": {
119+
"solid-js": ">=1.6.0",
120+
"uplot": ">=1.6.32"
121121
}
122122
}

0 commit comments

Comments
 (0)