build: enable vitest safety lint rules

This commit is contained in:
Peter Steinberger
2026-05-11 02:45:55 +01:00
parent bebbd5d67f
commit 25a473a48e
2 changed files with 6 additions and 0 deletions

View File

@@ -108,6 +108,11 @@
"unicorn/require-post-message-target-origin": "error",
"unicorn/throw-new-error": "error",
"vitest/no-import-node-test": "error",
"vitest/no-focused-tests": "error",
"vitest/no-disabled-tests": "error",
"vitest/no-conditional-tests": "error",
"vitest/no-conditional-expect": "error",
"vitest/no-standalone-expect": "error",
"vitest/consistent-vitest-vi": "error",
"vitest/prefer-called-once": "error",
"vitest/prefer-called-times": "error",

View File

@@ -6,6 +6,7 @@ Docs: https://docs.openclaw.ai
### Changes
- Build: enable stricter Vitest safety lint rules for focused, disabled, conditional, and standalone expectations.
- Build: pin explicit oxfmt defaults in the shared formatter config to keep formatting behavior stable across upgrades.
- TypeScript: enable stricter compiler checks for implicit returns, side-effect imports, overrides, and unused production code.
- Build: upgrade workspace package management to pnpm 11 and keep Docker, install, update, and release workflows on the pnpm 11 config surface. (#79414) Thanks @altaywtf.