Testing
This guide covers how to run quality checks on the NanoForge Schematics codebase.Running Lint Checks
The project uses ESLint for code quality and Prettier for formatting.prettier --check .to verify formattingeslint --format=pretty srcto check TypeScript source files for lint errors
Auto-Fixing Issues
prettier --write .to reformat fileseslint --fix --format=pretty srcto auto-fix lint issues where possible
Type Checking
TypeScript type checking is part of the build process.Building
Verify that the project builds without errors:dist/.
Pre-Commit Hooks
The project has pre-commit hooks configured via Husky and lint-staged. When you commit, the following checks run automatically on staged files:- Prettier formats all staged files
- ESLint fixes lint issues in staged
src/**/*.tsfiles
CI Pipeline
The GitHub Actions CI pipeline runs on every pull request targetingmain, every push to main, and manual dispatch.
It runs pnpm lint and blocks merging if it fails.