// Pre-commit checks on staged web files (run by the husky hook in web/.husky/pre-commit). // ESLint on the staged TypeScript; one type-check of both projects (--noEmit, so the tracked .tsbuildinfo files stay // untouched). Prettier is deliberately not used: the codebase has its own formatting (docs/QUALITY.md). export default { '*.{ts,tsx}': (files) => [ `eslint --max-warnings=0 --no-warn-ignored ${files.map((f) => JSON.stringify(f)).join(' ')}`, 'tsc -p tsconfig.app.json --noEmit', 'tsc -p tsconfig.node.json --noEmit', ], };