Skip to content

Commit 3f16c2e

Browse files
authored
Replace oxfmt with Prettier (#68)
* replace oxfmt with prettier * typo
1 parent 6fd9b5d commit 3f16c2e

File tree

10 files changed

+3477
-1280
lines changed

10 files changed

+3477
-1280
lines changed

.changeset/pre.json

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
2-
"mode": "pre",
3-
"tag": "next",
4-
"initialVersions": {
5-
"@storybook/mcp-internal-storybook": "0.0.0",
6-
"@storybook/addon-mcp": "0.1.3",
7-
"@storybook/mcp": "0.0.6"
8-
},
9-
"changesets": [
10-
"dull-impalas-vanish",
11-
"ready-ends-attend",
12-
"spotty-buses-sip",
13-
"strict-boxes-sort"
14-
]
2+
"mode": "pre",
3+
"tag": "next",
4+
"initialVersions": {
5+
"@storybook/mcp-internal-storybook": "0.0.0",
6+
"@storybook/addon-mcp": "0.1.3",
7+
"@storybook/mcp": "0.0.6"
8+
},
9+
"changesets": [
10+
"dull-impalas-vanish",
11+
"ready-ends-attend",
12+
"spotty-buses-sip",
13+
"strict-boxes-sort"
14+
]
1515
}

.github/instructions/addon-mcp.instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ pnpm storybook # From root - starts internal-storybook with addon in dev mode
133133

134134
### Formatting
135135

136-
Use oxfmt at the root level:
136+
Use prettier at the root level:
137137

138138
```bash
139139
pnpm format # From root
@@ -229,7 +229,7 @@ Tests run automatically on PRs and main branch pushes via `.github/workflows/che
229229

230230
### Code Style
231231

232-
- Use oxfmt for formatting (inherited from root config)
232+
- Use prettier for formatting (inherited from root config)
233233
- Prefer async/await over callbacks
234234
- Export types and interfaces explicitly
235235
- Use descriptive variable and function names

.github/instructions/mcp.instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ Runs the development server with hot reload using Node's `--watch` flag.
113113
pnpm format
114114
```
115115

116-
Formats code using oxfmt.
116+
Formats code using prettier.
117117

118118
To check formatting without applying changes:
119119

@@ -154,7 +154,7 @@ Launches the MCP inspector for debugging the MCP server using the configuration
154154

155155
### Code Style
156156

157-
- Use oxfmt for formatting (config: `.oxfmtrc.json`)
157+
- Use prettier for formatting (config: `.prettierrc`)
158158
- Prefer async/await over callbacks
159159
- Export types and interfaces explicitly
160160
- Use descriptive variable and function names

.oxfmtrc.json

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

.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"useTabs": true,
3+
"singleQuote": true,
4+
"trailingComma": "all"
5+
}

.vscode/settings.json

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
{
2-
"editor.defaultFormatter": "oxc.oxc-vscode",
3-
"oxc.fmt.experimental": true,
4-
"oxc.typeAware": true
2+
"editor.defaultFormatter": "esbenp.prettier-vscode",
3+
"oxc.typeAware": true
54
}

apps/internal-storybook/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"noUncheckedIndexedAccess": true,
1616
"noImplicitOverride": true,
1717
"noImplicitAny": true,
18-
"lib": ["esnext", "dom", "dom.iterable"],
18+
"lib": ["esnext", "dom", "dom.iterable"]
1919
},
2020
"include": ["stories/**/*"]
2121
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"build-storybook": "turbo run build-storybook",
1414
"changeset": "changeset",
1515
"dev": "turbo run dev",
16-
"format": "oxfmt",
16+
"format": "prettier --write .",
1717
"inspect": "pnpm run --filter @storybook/addon-mcp inspect",
1818
"lint": "oxlint --type-aware",
1919
"check-everything": "pnpm run format --check && pnpm run lint && pnpm run publint && pnpm run build && pnpm run build-storybook && pnpm run typecheck && pnpm run test -- run",
@@ -29,10 +29,10 @@
2929
"@codecov/rollup-plugin": "^1.9.1",
3030
"@codecov/vite-plugin": "^1.9.1",
3131
"@modelcontextprotocol/inspector": "^0.16.5",
32-
"oxfmt": "^0.9.0",
3332
"oxlint": "^1.25.0",
3433
"oxlint-tsgolint": "^0.4.0",
3534
"pkg-pr-new": "^0.0.57",
35+
"prettier": "^3.6.2",
3636
"tsdown": "catalog:",
3737
"turbo": "^2.3.5",
3838
"vitest": "catalog:"

packages/addon-mcp/CHANGELOG.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ EDIT: The above is not true anymore, see version [0.1.1](#011) of this package.
8383
- [#33](https://github.com/storybookjs/mcp/pull/33) [`ae6ab44`](https://github.com/storybookjs/mcp/commit/ae6ab44e4c4bdf9797facab69c6748bc7a52ba9a) Thanks [@JReinhold](https://github.com/JReinhold)! - Add tools to get documentation for components, based on the component manifest being generated in the Storybook dev server.
8484

8585
Requirements:
86-
8786
1. That the **experimental** feature flag `features.experimentalComponentsManifest` is set to `true` in the main config.
8887
2. Only React-based frameworks supports component manifest generation for now.
8988
3. Requires Storybook v10.1 (prereleases), which at the time of writing is available as a canary version `0.0.0-pr-32810-sha-af0645cd`.
@@ -126,7 +125,6 @@ EDIT: The above is not true anymore, see version [0.1.1](#011) of this package.
126125
### Patch Changes
127126

128127
- [#11](https://github.com/storybookjs/addon-mcp/pull/11) [`bba9b8c`](https://github.com/storybookjs/addon-mcp/commit/bba9b8c683acdd5dfa835d4dea848dce7355ee82) Thanks [@JReinhold](https://github.com/JReinhold)! - - Improved UI Building Instructions
129-
130128
- Improved output format of Get Story URLs tool
131129

132130
- [#9](https://github.com/storybookjs/addon-mcp/pull/9) [`e5e2adf`](https://github.com/storybookjs/addon-mcp/commit/e5e2adf7192d5e12f21229056b644e7aa32287ed) Thanks [@JReinhold](https://github.com/JReinhold)! - Add basic telemetry for sessions and tool calls

0 commit comments

Comments
 (0)