Merge branch 'v2/main' into v2/fix/1914-surface-post-add-refresh-failure

This commit is contained in:
Cliff Hall 2026-08-23 16:49:45 -04:00 • committed by GitHub
commit 527b3f63e2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 30 additions and 7 deletions

View file

@ -27,6 +27,14 @@ export default defineConfig([
ecmaVersion: 2020,
globals: globals.browser,
},
rules: {
// Promoted from the recommended set's `warn` (#2085). A stale-closure
// defect was reported correctly on every run and still reached review,
// because `lint` fails only on errors. `--max-warnings 0` now fails the
// gate either way; this makes the severity read correctly in an editor
// too, rather than depending on a CLI flag.
"react-hooks/exhaustive-deps": "error",
},
},
{
// Test setup files re-export utilities and mix components with helpers — the

View file

@ -25,7 +25,7 @@
"test:integration": "npm run test-servers:build && vitest run --project=integration",
"test:integration:watch": "npm run test-servers:build && vitest --project=integration",
"test-servers:build": "tsc -p ../../test-servers --noCheck",
"lint": "eslint .",
"lint": "eslint . --max-warnings 0",
"format": "prettier --write src server .storybook \"*.{ts,tsx,mts,cts,js,jsx,mjs,cjs}\"",
"format:check": "prettier --check src server .storybook \"*.{ts,tsx,mts,cts,js,jsx,mjs,cjs}\"",
"preview": "vite preview",