This is a guide to contributing to scaffold-stellar-frontend itself. Feel free to delete or modify it for your own project.
When submitting PRs, use keywords like "Closes #issue-number" or "Fixes #issue-number" to automatically close issues when the PR is merged.
-
Install dependencies:
npm install
-
Set up Husky (pre-commit hooks):
npm run prepare
This project uses Husky and lint-staged to automatically format and lint code before commits.
The pre-commit hook runs:
- ESLint with auto-fix for JavaScript/TypeScript files
- Prettier to format all files
In rare cases, you may need to bypass the pre-commit hooks (e.g., to commit a fix when lint-staged is causing issues):
git commit --no-verify -m "Your commit message"Warning: Use --no-verify sparingly. Commits that bypass hooks may fail CI checks and require additional cleanup.
- Use Prettier for formatting (runs automatically on commit)
- Follow ESLint rules (auto-fixable issues are corrected automatically)
- Run
npm run formatmanually if needed - Run
npm run lintto check for issues without fixing