mirror of
https://github.com/trezor/trezor-suite.git
synced 2026-02-20 00:33:07 +01:00
2.3 KiB
2.3 KiB
Skills
All skills are mandatory reading before making changes.
- Basic Syntax – If-else, ternaries, and other syntax rules
- Code Style Guide – How to contribute code style proposals
- Comments – Comment formatting conventions
- Common Issues – Known issues and their solutions
- Common Tasks – Dependency management, package creation, and troubleshooting
- Components – React component file structure and patterns
- Defensive Programming – Exhaustive checks and safe defaults
- Development Commands – Running apps, linting, testing, and building
- Git and Commit Guidelines – Conventional Commits format and best practices
- Import/Export – Named exports and import ordering
- Naming – Naming conventions for variables, functions, and files
- Packages – How to create and structure packages
- Project Overview – What Trezor Suite is and how the monorepo is organized
- Redux – Redux Toolkit patterns and best practices
- Setup Requirements – Prerequisites and initial environment setup
- Tests Commands – Running tests and test-related guidelines
- Tests Native – Guidelines for writing tests for suite-native components, hooks and functions
- Tests – Test style guidelines and best practices
- TypeScript – TypeScript-specific conventions
Formatting (mandatory)
After any code changes, run formatting on changed files before finishing:
yarn g:prettier --write <changed-files>yarn g:eslint --fix <changed-files>
Other Notes
- Build times: Initial setup takes 15-20 minutes; builds can take 10-15 minutes
- Windows: Use Git Bash instead of cmd/PowerShell; consider WSL for better performance
- Testing: Some tests may time out in CI environments without network access
- Hardware wallets: Use trezor/trezor-user-env emulator for development