chore: replace Prettier with oxfmt and add oxlint (#6259)

* chore: replace Prettier with oxfmt and add oxlint

- Replace Prettier with oxfmt (Prettier-compatible formatter from OXC project)
- Add oxlint for fast linting alongside ESLint
- Add eslint-plugin-oxlint to disable ESLint rules covered by oxlint
- Update lint scripts to run oxfmt, oxlint, then eslint
- Update lint-staged configuration for pre-commit hooks
- Create .oxfmtrc.json and .oxlintrc.json configuration files
- Remove .prettierrc.json and .prettierignore
- Reformat codebase with oxfmt

* chore: update dependencies in yarn.lock

* chore: update oxlint configuration to disable additional rules

* chore: update oxfmt and oxlint configurations, enhance test readability
This commit is contained in:
Matiss Janis Aboltins
2025-12-04 19:55:10 +00:00
committed by GitHub
parent 76dadfa5fb
commit 879fd1b054
33 changed files with 1133 additions and 1692 deletions

View File

@@ -11,9 +11,7 @@
"clear": "docusaurus clear",
"serve": "docusaurus serve",
"write-translations": "docusaurus write-translations",
"write-heading-ids": "docusaurus write-heading-ids",
"format": "prettier --write .",
"lint": "prettier --check ."
"write-heading-ids": "docusaurus write-heading-ids"
},
"dependencies": {
"@docusaurus/core": "^3.9.2",
@@ -32,8 +30,7 @@
},
"devDependencies": {
"@docusaurus/module-type-aliases": "^3.9.2",
"@types/react": "^19.2.5",
"prettier": "^3.6.2"
"@types/react": "^19.2.5"
},
"browserslist": {
"production": [