LogoLogo
  • Start
  • Deployment
  • Configuration
  • Concepts
    • Resources & Types
    • Recipes & Ingredients
  • User Guide
    • General Workflow
    • Resource Management
    • Resource Assignment
    • Resource Allocation
  • Use Case Guide
    • Set-up
    • Use Case: Resources
    • Use Case: Optimization
    • Use Case: Allocation
  • Contributing
    • Tools
    • Project Management
    • Style Guidelines
    • Debugging
    • Docker Images for Optimization
Powered by GitBook
On this page

Was this helpful?

  1. Contributing

Style Guidelines

PreviousProject ManagementNextDebugging

Last updated 6 years ago

Was this helpful?

Rembrandt repositories are following from , a comprehensive Typescript book. In addition to these guidelines we enforce the following rules:

Filenames

  • Use PascalCase.ts for classes

  • Use camelCase.ts for instances

Reason: Default export for files is clear

Class as default export

Bad

export default class HelloWorld {}

helloWorld.ts

Good

export default class HelloWorld {}

HelloWorld.ts

Instance as default export

Bad

export default const helloWorld: string = 'Hello World!';

HelloWorld.ts

Good

export default const helloWorld: string = 'Hello World!';

helloWorld.ts
style guidelines and coding conventions
Typescript Deep Dive