Search…
Style Guidelines
Rembrandt repositories are following style guidelines and coding conventions from Typescript Deep Dive, 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
1
export default class HelloWorld {}
2
3
helloWorld.ts
Copied!
Good
1
export default class HelloWorld {}
2
3
HelloWorld.ts
Copied!
Instance as default export
Bad
1
export default const helloWorld: string = 'Hello World!';
2
3
HelloWorld.ts
Copied!
Good
1
export default const helloWorld: string = 'Hello World!';
2
3
helloWorld.ts
Copied!
Last modified 2yr ago
Copy link
Contents
Filenames