Switch from prettier to oxfmt (#33844)

* Switch from prettier to oxfmt

* Make knip happy

* Make knip happy

* Apply suggestion from @t3chguy

* Rename .oxfmtrc.json to .oxfmtrc.jsonc

* Make oxfmt happier
This commit is contained in:
Michael Telatynski
2026-06-16 12:17:18 +00:00
committed by GitHub
parent 5d93490547
commit eca2f39dbb
28 changed files with 399 additions and 217 deletions
@@ -202,16 +202,14 @@ describe("<UserInfo />", () => {
describe.each([[ProfileKeyTimezone], [ProfileKeyMSC4175Timezone]])("timezone rendering (%s)", (profileKey) => {
it("renders user timezone if set", async () => {
// For timezone, force a consistent locale.
jest.spyOn(global.Date.prototype, "toLocaleString").mockImplementation(function (
this: Date,
_locale,
opts,
) {
return origDate.call(this, "en-US", {
...opts,
hourCycle: "h12",
});
});
jest.spyOn(global.Date.prototype, "toLocaleString").mockImplementation(
function (this: Date, _locale, opts) {
return origDate.call(this, "en-US", {
...opts,
hourCycle: "h12",
});
},
);
mockClient.doesServerSupportExtendedProfiles.mockResolvedValue(true);
mockClient.getExtendedProfile.mockResolvedValue({ [profileKey]: "Europe/London" });
renderComponent();