Switch from eslint to oxlint (#34166)

* Fix type imports

* Fix jsdoc

* Fixup types

* Fix stray awaits on non-thenables

* Fixup imports

* Fix splats

* Fix this-context on callbacks

* Memoise react contexts

* Prefer find/flatMap

* Make oxlint happier about our React keys

* Avoid unsafe default function params

* Fixup jsdoc

* Fixup contexts

* Switch from eslint to oxlint

* Some oxlint-related tweaks

* Iterate

* Partial revert to defer some changes and shrink diff

* Iterate

* Add eslint-plugin-element-call and enable the copyright rule

* Set strictStorePkgContentCheck

* Iterate

* Make sonar happy

* Fix new lints
This commit is contained in:
Michael Telatynski
2026-07-10 09:47:41 +00:00
committed by GitHub
parent 549dd1b7a8
commit 15c85ec50f
176 changed files with 1294 additions and 2876 deletions
+8 -2
View File
@@ -13,9 +13,11 @@
"i18n": "pnpm -r i18n",
"i18n:sort": "pnpm -r i18n:sort",
"i18n:lint": "pnpm -r i18n:lint",
"lint": "pnpm -r --workspace-concurrency=1 lint:types && pnpm lint:fmt && pnpm -r lint:js && pnpm -r lint:style && pnpm lint:workflows && pnpm lint:knip",
"lint": "pnpm -r --workspace-concurrency=1 lint:types && pnpm lint:fmt && pnpm lint:js && pnpm -r lint:style && pnpm lint:workflows && pnpm lint:knip",
"lint:fmt": "oxfmt --check",
"lint:fmt-fix": "oxfmt",
"lint:fmt:fix": "oxfmt",
"lint:js": "oxlint",
"lint:js:fix": "oxlint --fix",
"lint:workflows": "find .github/workflows -type f \\( -iname '*.yaml' -o -iname '*.yml' \\) -print -exec action-validator {} ';'",
"lint:knip": "knip --no-tag-hints && knip --strict --exclude unlisted,dependencies,binaries",
"lint:unused-settings": "node scripts/find-unused-settings.ts",
@@ -35,6 +37,8 @@
"@types/node": "25",
"@vitest/coverage-v8": "catalog:",
"cronstrue": "^3.0.0",
"eslint-plugin-element-call": "github:element-hq/element-call#livekit&path:/eslint",
"eslint-plugin-storybook": "^10.4.6",
"husky": "^9.0.0",
"knip": "6.24.0",
"lint-staged": "^17.0.0",
@@ -43,6 +47,8 @@
"minimist": "^1.2.6",
"nx": "23.0.1",
"oxfmt": "0.56.0",
"oxlint": "^1.70.0",
"oxlint-tsgolint": "^0.23.0",
"typescript": "catalog:",
"vitepress": "^1.6.4",
"vitepress-plugin-mermaid": "^2.0.17",