Commit f100810
authored
## Context
Oxfmt is a fast drop-in replacement for prettier that's already seeing
widespread adoption.
https://oxc.rs/blog/2026-02-24-oxfmt-beta.html
## Changes
Swap repo's formatter for `oxfmt`. Runtime `prettier` usage remains
untouched.
- Add oxfmt, remove root prettier dev dep
- Migrate `.prettierrc` → `.oxfmtrc.json` (via `oxfmt
--migrate=prettier`)
- Rename scripts: `pretty` → `format`, `pretty-check` → `format-check`,
`format` → `fix`
- Update CI workflow to use `format-check`
- Recommend oxc VS Code extension instead of prettier-vscode
- Add `svgo` for deterministic SVG formatting with a CI check
(`svgo-check`)
- Fix invalid ambient initializer in
`packages/graphiql-react/src/env.d.ts` (`var __MONACO = monaco` → `var
__MONACO: typeof monaco`)
- Refactor whitespace-sensitive assertion in `parseDocument.test.ts` to
use `.join('\n')` so the formatter can't alter it
### Remaining `ignorePatterns`
- `schema-kitchen-sink.graphql` — contains spec-invalid GraphQL (`extend
type Foo @ontype {}`, `type NoFields {}`) that oxfmt can't parse. Fixing
requires updating the online parser in `graphql-language-service` (see
#4206).
- `**/CHANGELOG.md` — auto-generated by changesets
1 parent ca83879 commit f100810
File tree
105 files changed
+685
-893
lines changed- .github/workflows
- .vscode
- docs/migration
- examples
- graphiql-vite/public
- graphiql-webpack/public
- packages
- graphiql-plugin-explorer/src/icons
- graphiql-react
- font
- src
- components
- markdown-content
- icons
- stores
- style
- utility
- graphiql
- resources
- src
- graphql-language-service-server/src
- __tests__
- monaco-graphql/src
- typings
- vscode-graphql-syntax/tests
- __fixtures__
- __snapshots__
- resources
- working-group
- agendas
- 2023
- 2024
- 08-Aug
- 09-Sep
- 10-Oct
- 11-Nov
- 12-Dec
- 2025
- 01-Jan
- 02-Feb
- 03-Mar
- 04-Apr
- 05-May
- 06-Jun
- 07-Jul
- 08-Aug
- 09-Sep
- 10-Oct
- 11-Nov
- 12-Dec
- 2026
- 01-Jan
- 02-Feb
- 03-Mar
- 04-Apr
- 05-May
- 06-Jun
- minutes
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
105 files changed
+685
-893
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
| |||
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
228 | | - | |
| 228 | + | |
229 | 229 | | |
230 | 230 | | |
231 | 231 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
40 | | - | |
| 39 | + | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
| 49 | + | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
3 | 3 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | 6 | | |
8 | 7 | | |
9 | 8 | | |
| |||
Loading
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
0 commit comments