Download web/lint-staged.config.js from EnergyVenom/patchwise-agent-studio: direct link, hf CLI and curl.
- Browser
- Download file 559 Bytes
-
https://huggingface.co/spaces/EnergyVenom/patchwise-agent-studio/resolve/main/web/lint-staged.config.js
- Command line
-
hf download hf://spaces/EnergyVenom/patchwise-agent-studio/web/lint-staged.config.js
-
curl -L -o lint-staged.config.js https://huggingface.co/spaces/EnergyVenom/patchwise-agent-studio/resolve/main/web/lint-staged.config.js
559 Bytes
| // 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', | |
| ], | |
| }; | |