Skip to content

Commit b2d0c99

Browse files
initial changes
1 parent df40f57 commit b2d0c99

98 files changed

Lines changed: 451 additions & 162 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.

.changeset/heavy-regions-shake.md

Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
---
2+
"@uifabricshared/foundation-composable": patch
3+
"@fluentui-react-native/experimental-appearance-additions": patch
4+
"@uifabricshared/theming-react-native": patch
5+
"@uifabricshared/foundation-settings": patch
6+
"@fluentui-react-native/experimental-activity-indicator": patch
7+
"@fluentui-react-native/experimental-native-font-metrics": patch
8+
"@uifabricshared/foundation-compose": patch
9+
"@fluentui-react-native/experimental-native-date-picker": patch
10+
"@uifabricshared/foundation-tokens": patch
11+
"@fluentui-react-native/eslint-config-rules": patch
12+
"@fluentui-react-native/themed-stylesheet": patch
13+
"@uifabricshared/themed-settings": patch
14+
"@fluentui-react-native/contextual-menu": patch
15+
"@uifabricshared/theme-registry": patch
16+
"@fluentui-react-native/vibrancy-view": patch
17+
"@fluentui-react-native/immutable-merge": patch
18+
"@fluentui-react-native/focus-trap-zone": patch
19+
"@fluentui-react-native/notification": patch
20+
"@uifabricshared/theming-ramp": patch
21+
"@fluentui-react-native/experimental-menu-button": patch
22+
"@fluentui-react-native/interactive-hooks": patch
23+
"@fluentui-react-native/persona-coin": patch
24+
"@fluentui-react-native/menu-button": patch
25+
"@fluentui-react-native/radio-group": patch
26+
"@fluentui-react-native/react-configs": patch
27+
"@fluentui-react-native/experimental-checkbox": patch
28+
"@fluentui-react-native/dropdown": patch
29+
"@fluentui-react-native/experimental-expander": patch
30+
"@fluentui-react-native/overflow": patch
31+
"@fluentui-react-native/composition": patch
32+
"@fluentui-react-native/merge-props": patch
33+
"@fluentui-react-native/use-styling": patch
34+
"@fluentui-react-native/android-theme": patch
35+
"@fluentui-react-native/default-theme": patch
36+
"@fluentui-react-native/theming-utils": patch
37+
"@fluentui-react-native/focus-zone": patch
38+
"@fluentui-react-native/pressable": patch
39+
"@fluentui-react-native/separator": patch
40+
"@fluentui-react-native/babel-config": patch
41+
"@fluentui-react-native/popover": patch
42+
"@fluentui-react-native/experimental-shimmer": patch
43+
"@fluentui-react-native/spinner": patch
44+
"@fluentui-react-native/tooltip": patch
45+
"@fluentui-react-native/memo-cache": patch
46+
"@fluentui-react-native/use-tokens": patch
47+
"@fluentui-react-native/theme-tokens": patch
48+
"@fluentui-react-native/checkbox": patch
49+
"@fluentui-react-native/jest-config": patch
50+
"@fluentui-react-native/experimental-avatar": patch
51+
"@fluentui-react-native/drawer": patch
52+
"@fluentui-react-native/experimental-shadow": patch
53+
"@fluentui-react-native/framework": patch
54+
"@fluentui-react-native/use-slots": patch
55+
"@fluentui-react-native/apple-theme": patch
56+
"@fluentui-react-native/theme-types": patch
57+
"@fluentui-react-native/win32-theme": patch
58+
"@fluentui-react-native/callout": patch
59+
"@fluentui-react-native/divider": patch
60+
"@fluentui-react-native/persona": patch
61+
"@fluentui-react-native/tablist": patch
62+
"@fluentui-react-native/kit-config": patch
63+
"@fluentui-react-native/experimental-stack": patch
64+
"@fluentui-react-native/use-slot": patch
65+
"@fluentui-react-native/avatar": patch
66+
"@fluentui-react-native/button": patch
67+
"@fluentui-react-native/switch": patch
68+
"@fluentui-react-native/badge": patch
69+
"@fluentui-react-native/input": patch
70+
"@fluentui-react-native/stack": patch
71+
"@fluentui-react-native/chip": patch
72+
"@fluentui-react-native/icon": patch
73+
"@fluentui-react-native/link": patch
74+
"@fluentui-react-native/menu": patch
75+
"@fluentui-react-native/text": patch
76+
"@fluentui-react-native/theme": patch
77+
"@fluentui-react-native/framework-base": patch
78+
"@fluentui/react-native": patch
79+
"@fluentui-react-native/adapters": patch
80+
"@fluentui-react-native/styling-utils": patch
81+
"@fluentui-react-native/tokens": patch
82+
"@fluentui-react-native/codemods": patch
83+
"@fluentui-react-native/scripts": patch
84+
---
85+
86+
chore: migrate to `oxfmt`

.github/workflows/pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,8 @@ jobs:
2727
- name: Install dependencies
2828
run: yarn
2929

30-
- name: Check prettier
31-
run: yarn prettier
30+
- name: Check formatting
31+
run: yarn format:check
3232

3333
- name: Run lint-lockfile
3434
run: yarn lint-lockfile

.oxfmtrc.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"$schema": "./node_modules/oxfmt/configuration_schema.json",
3+
"printWidth": 140,
4+
"singleQuote": true,
5+
"ignorePatterns": [
6+
".yarnrc.yml",
7+
".changesets/*.md",
8+
"**/__fixtures__/**",
9+
"**/__testfixtures__/**",
10+
"**/lib-commonjs/**",
11+
"**/dist/**",
12+
"**/CHANGELOG.*",
13+
"**/CODE_OF_CONDUCT.md",
14+
"**/SECURITY.md"
15+
]
16+
}

.prettierignore

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

CLAUDE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ yarn clean # Clean build artifacts
6262

6363
### Development Commands
6464
```bash
65-
yarn prettier-fix # Format code with Prettier
65+
yarn format # Format code with oxfmt
6666
yarn depcheck # Check for unused dependencies across packages
6767
yarn depcheck-fix # Fix depcheck issues automatically
6868
yarn align-deps # Align React Native dependencies using @rnx-kit/align-deps
@@ -88,8 +88,8 @@ Individual packages use `fluentui-scripts` (in `/scripts/`) which provides:
8888
- Validates dependencies, scripts, entry points, and build configuration
8989
- `yarn test` - Jest tests (where applicable)
9090
- `yarn depcheck` - Check for unused dependencies
91-
- `yarn prettier` - Check code formatting
92-
- `yarn prettier-fix` - Fix code formatting
91+
- `yarn format` - Check code formatting
92+
- `yarn format:fix` - Fix code formatting
9393

9494
## TypeScript Configuration
9595

README.md

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,9 @@ After a successful yarn build, you can explore FluentUI Tester, our demo applica
120120

121121
Note: If your repo is located on either your Desktop or Documents folder, you may encounter the error: "Watchman error... Operation not permitted". Clone it in a different directory to avoid Watchman permission issues.
122122

123-
### Prettier
123+
### Formatting
124124

125-
This repo is set up to run [Prettier](https://prettier.io/). To run Prettier in fix mode on the repo, run `yarn prettier-fix` at the root of the Repo.
126-
127-
If you are using [Visual Studio Code as your editor, you can configure it to run Prettier on save. Prettier is a recommended extension for the repo. You can configure it to run by:
128-
129-
1. Installing the Prettier extension for VSCode
130-
2. Going to Settings > Text Editor > Formatting > Check Format On Save
125+
This repo is set up to run [oxfmt](https://oxc.rs/docs/guide/usage/formatter.html). To run oxfmt in fix mode on the repo, run `yarn format:fix` at the root of the Repo.
131126

132127
## Contributing
133128

apps/component-generator/component-templates/ComponentTemplate/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"lint-package": "fluentui-scripts lint-package",
1616
"test": "fluentui-scripts jest",
1717
"update-snapshots": "fluentui-scripts jest -u",
18-
"prettier": "fluentui-scripts prettier",
18+
"format": "fluentui-scripts format",
1919
"prettier-fix": "fluentui-scripts prettier --fix true"
2020
},
2121
"repository": {

apps/fluent-tester/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"lint": "fluentui-scripts eslint",
3737
"lint-package": "fluentui-scripts lint-package",
3838
"macos": "rnx-cli run --platform macos",
39-
"prettier": "fluentui-scripts prettier",
39+
"format": "fluentui-scripts format",
4040
"start": "rnx-cli start",
4141
"windows": "react-native run-windows --arch x64 --sln windows/FluentTester.sln"
4242
},

apps/tester-core/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
"depcheck": "fluentui-scripts depcheck",
2929
"lint": "fluentui-scripts eslint",
3030
"lint-package": "fluentui-scripts lint-package",
31-
"prettier": "fluentui-scripts prettier"
31+
"format": "fluentui-scripts format"
3232
},
3333
"jest": {
3434
"preset": "react-native"

apps/win32-81/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"depcheck": "fluentui-scripts depcheck",
2828
"lint": "fluentui-scripts eslint",
2929
"lint-package": "fluentui-scripts lint-package",
30-
"prettier": "fluentui-scripts prettier",
30+
"format": "fluentui-scripts format",
3131
"run-win32": "rex-win32 --bundle index.win32 --component FluentTester --basePath ./dist --useDirectDebugger --windowTitle \"FluentUI Tester\" --pluginProps --debugBundlePath index --jsEngine v8",
3232
"run-win32-dev": "rex-win32 --bundle index --component FluentTester --basePath ./dist --useDirectDebugger --windowTitle \"FluentUI Tester\" --pluginProps --debugBundlePath index --jsEngine v8 --useFastRefresh",
3333
"run-win32-devmain": "rex-win32 --bundle index.win32 --component FluentTester --basePath ./dist --useDirectDebugger --windowTitle \"FluentUI Tester\" --pluginProps --debugBundlePath index --jsEngine v8 --useDevMain ",

0 commit comments

Comments
 (0)