- Build Storybook:
yarn build - Run Storybook:
yarn start - Format code:
yarn format - Run all unit tests:
yarn test - Typescript check:
yarn ts - Run linter:
yarn lint
- Use the conventions in .prettierrc or run the format command after changes.
- Avoid adding comments that say obvious things about what the code does.
- Prefer const-assigned arrow functions over function declarations.
Install new dependencies with yarn instead of npm.
Format the code, run the typescript checker, and run the linter when you're done working. There's no need to rerun tests after code formatting.