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
@@ -1,5 +0,0 @@
// Even though this (at time of writing) is identical Element Web's
// .prettierrc.js, shared components needs its own because otherwise
// this refers to element web's copy of eslint-plugin-matrix-org which
// would require element-web's modules to be installed.
module.exports = require("eslint-plugin-matrix-org/.prettierrc.js");
+2 -3
View File
@@ -47,7 +47,7 @@
"scripts": {
"i18n": "matrix-gen-i18n src && pnpm i18n:sort && pnpm i18n:lint",
"i18n:sort": "matrix-sort-i18n src/i18n/strings/en_EN.json",
"i18n:lint": "matrix-i18n-lint && prettier --log-level=silent --write src/i18n/strings/ --ignore-path /dev/null",
"i18n:lint": "matrix-i18n-lint && oxfmt src/i18n/strings/",
"test:unit": "nx test:unit",
"test:storybook": "nx test:storybook",
"test:storybook:update": "nx test:storybook:update",
@@ -112,7 +112,6 @@
"@vitest/browser-playwright": "catalog:",
"eslint": "8",
"eslint-config-google": "^0.14.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-deprecate": "^0.9.0",
"eslint-plugin-import": "^2.32.0",
"eslint-plugin-jsx-a11y": "^6.10.2",
@@ -122,7 +121,7 @@
"eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-storybook": "^10.0.7",
"eslint-plugin-unicorn": "^56.0.0",
"prettier": "^3.6.2",
"oxfmt": "^0.54.0",
"storybook": "^10.0.7",
"storybook-addon-vis": "^4.0.0",
"typedoc": "^0.28.16",
@@ -373,7 +373,7 @@ export function VirtualizedRoomListView({ vm, renderAvatar, onKeyDown }: Virtual
rangeChanged,
onKeyDown,
increaseViewportBy,
className: styles.roomList,
"className": styles.roomList,
};
if (isFlatList) {