Skip to content

Latest commit

 

History

History
18 lines (15 loc) · 667 Bytes

File metadata and controls

18 lines (15 loc) · 667 Bytes

Bash commands

  • pnpm build - Build package
  • pnpm check:lint - Lint package
  • pnpm check:types - Typecheck package
  • pnpm test:unit - Run package unit tests
  • pnpm test:browser - Run package browser tests
  • pnpm test:browser:chromium - Run specific browser tests

Code style

  • Avoid code comments unless they explain why a piece of code is needed
  • Comments for an if statement go inside the if statement, not above it
  • Place helper functions below main functions
  • Only use type casting as a last resort
  • Use backticks when referencing code in comments and other text
  • Don't use one-character variable names
  • Use full, easily-understood variable names