Skip to content
This repository was archived by the owner on Jul 31, 2026. It is now read-only.

Commit e04585b

Browse files
authored
feat(formatting): switch prettier to oxfmt (#352)
1 parent 23b3b0a commit e04585b

244 files changed

Lines changed: 9341 additions & 9196 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- uses: actions/setup-node@v6
1717
with:
1818
node-version: 24
19-
cache: 'pnpm'
19+
cache: "pnpm"
2020

2121
- run: pnpm install
2222

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
uses: actions/setup-node@v6
2525
with:
2626
node-version: 24
27-
cache: 'pnpm'
27+
cache: "pnpm"
2828
- name: Install dependencies
2929
run: pnpm install
3030
- name: Semantic Release

.github/workflows/published-test.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ on:
55
branches:
66
- main
77

8-
98
jobs:
109
test:
1110
runs-on: ubuntu-latest
@@ -17,7 +16,7 @@ jobs:
1716
- uses: actions/setup-node@v6
1817
with:
1918
node-version: 24
20-
cache: 'pnpm'
19+
cache: "pnpm"
2120

2221
- run: pnpm install
2322
- run: pnpm pack
@@ -28,6 +27,5 @@ jobs:
2827
- run: pnpm install --no-frozen-lockfile
2928
working-directory: integration
3029

31-
3230
- run: pnpm test
3331
working-directory: integration

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- uses: actions/setup-node@v6
1717
with:
1818
node-version: 24
19-
cache: 'pnpm'
19+
cache: "pnpm"
2020

2121
- run: pnpm install
2222

.github/workflows/typecheck.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
- uses: actions/setup-node@v6
1717
with:
1818
node-version: 24
19-
cache: 'pnpm'
19+
cache: "pnpm"
2020

2121
- run: pnpm install
2222

.oxfmtrc.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3+
"printWidth": 80,
4+
"experimentalSortPackageJson": false,
5+
"ignorePatterns": ["/src/components/Icon/names.ts", "/types/utilities.d.ts"],
6+
"overrides": [
7+
{
8+
"files": ["src/**"],
9+
"options": {
10+
"sortTailwindcss": {
11+
"stylesheet": "./src/global.css",
12+
"functions": ["clsx", "cn"],
13+
"preserveWhitespace": true
14+
}
15+
}
16+
}
17+
]
18+
}

.prettierignore

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

.prettierrc.json

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

.storybook/fonts.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,4 +44,4 @@
4444
font-weight: 100;
4545
font-style: normal;
4646
font-display: block;
47-
}
47+
}

.storybook/main.ts

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,46 @@
1-
import type { StorybookConfig } from '@storybook/react-vite'
2-
import { resolve } from 'path'
1+
import type { StorybookConfig } from "@storybook/react-vite";
2+
import { resolve } from "path";
33

44
const config: StorybookConfig = {
5-
stories: ['../src/**/*.mdx', '../src/**/*.stories.@(js|jsx|mjs|ts|tsx)'],
5+
stories: ["../src/**/*.mdx", "../src/**/*.stories.@(js|jsx|mjs|ts|tsx)"],
66
addons: [
7-
'@storybook/addon-links',
8-
'@storybook/addon-themes',
9-
'@storybook/addon-docs',
10-
'@storybook/addon-mcp',
7+
"@storybook/addon-links",
8+
"@storybook/addon-themes",
9+
"@storybook/addon-docs",
10+
"@storybook/addon-mcp",
1111
],
1212
framework: {
13-
name: '@storybook/react-vite',
13+
name: "@storybook/react-vite",
1414
options: {},
1515
},
1616
features: {
1717
sidebarOnboardingChecklist: false,
1818
},
19-
staticDirs: ['./public'],
19+
staticDirs: ["./public"],
2020
async viteFinal(config) {
21-
const { mergeConfig } = await import('vite')
21+
const { mergeConfig } = await import("vite");
2222

2323
return mergeConfig(config, {
2424
plugins: [
2525
{
2626
// MDX compiler generates file:// imports for pnpm virtual store paths
2727
// that Vite can't resolve. Normalize them to absolute paths.
28-
name: 'resolve-file-protocol-imports',
28+
name: "resolve-file-protocol-imports",
2929
resolveId(id) {
30-
if (!id.startsWith('file://')) return
31-
const path = id.slice('file://'.length)
32-
return path.startsWith('/') ? path : resolve(process.cwd(), path)
30+
if (!id.startsWith("file://")) return;
31+
const path = id.slice("file://".length);
32+
return path.startsWith("/") ? path : resolve(process.cwd(), path);
3333
},
3434
},
3535
],
3636
optimizeDeps: {
3737
// https://github.com/storybookjs/storybook/issues/28542#issuecomment-2268031095
3838
exclude: [
39-
'node_modules/.cache/sb-vite',
40-
'node_modules/.cache/storybook',
39+
"node_modules/.cache/sb-vite",
40+
"node_modules/.cache/storybook",
4141
],
4242
},
43-
})
43+
});
4444
},
45-
}
46-
export default config
45+
};
46+
export default config;

0 commit comments

Comments
 (0)