Developer Codex

TypeScript

Rock uses ESLint to lint the TypeScript files, so nearly all of these rules will be enforced for you through compiler warnings and errors.

  1. Use Pascal casing for classes, interfaces, namespaces, types, and enum names.
  2. Use Camel casing for function names, variables, and function parameters.
  3. Do not prefix private properties or fields with the underscore "_".
  4. Use meaningful, descriptive words to name variables. Do not use abbreviations.
  5. Use Camel casing for filenames.